PlatformChecker constructor

PlatformChecker({
  1. Platform platform = instance,
  2. bool? isWeb,
  3. bool? isRootZone,
})

Implementation

PlatformChecker({
  this.platform = instance,
  bool? isWeb,
  bool? isRootZone,
})  : isWeb = isWeb ?? _isWebWithWasmSupport(),
      isRootZone = isRootZone ?? Zone.current == Zone.root;