TwinScreenPlatform class abstract

Reports hinge and fold information from the host platform.

Android and iOS use MethodChannelTwinScreen, web uses TwinScreenWeb, and desktop reports an ordinary device.

Implementers

Constructors

TwinScreenPlatform()
Creates a platform implementation.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rememberDeviceType(TwinDeviceType type) → Future<void>
Tells the platform which hardware type a fold revealed, so it can report it on later launches before any fold is visible (for example on the cover screen). The default does nothing.
toString() → String
A string representation of this object.
inherited
watchState() → Stream<TwinPlatformState>
Emits the current state as soon as it is known, then every change.

Operators

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

Static Properties

instance ↔ TwinScreenPlatform
The implementation in use. Defaults to MethodChannelTwinScreen.
getter/setter pair