isWeb function

bool isWeb({
  1. @visibleForTesting bool? overrideIsWeb,
})

If you want to override the kIsWeb use overrideIsWeb but it's only for testing

Implementation

bool isWeb({
  @visibleForTesting bool? overrideIsWeb,
}) {
  return overrideIsWeb ?? kIsWeb;
}