FakeRuntime class

Creates a FakeRuntime for testing.

Implemented types
Annotations
  • @visibleForTesting

Constructors

FakeRuntime([PlatformType type = PlatformType.unknown, String platform = 'unknown'])
Creates a FakeRuntime.
const

Properties

android bool
Whether the current runtime type is android.
no setteroverride
fuchsia bool
Whether the current runtime type is fuchsia.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
ios bool
Whether the current runtime type is ios.
no setteroverride
linux bool
Whether the current runtime type is linux.
no setteroverride
macos bool
Whether the current runtime type is macos.
no setteroverride
platform String
The current platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PlatformType
The current platform type.
final
web bool
Whether the current runtime type is web.
no setteroverride
windows bool
Whether the current runtime type is windows.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited