FakeVooWearPlatform class

In-process VooWearPlatform for widget tests.

Configure shapeValue before exercising widgets that call shape, then pump events with emitAmbient / emitRotary to assert your widgets react.

Implemented types

Constructors

FakeVooWearPlatform({VooWearShape shapeValue = VooWearShape.round})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shapeValue VooWearShape
getter/setter pair

Methods

ambient() Stream<VooWearAmbientState>
Hot stream of ambient transitions. Always emits a current value on first listen.
override
dispose() Future<void>
Tear down any subscriptions / sinks.
override
emitAmbient(VooWearAmbientState state) → void
Test helper: simulate an ambient transition.
emitRotary(VooWearRotaryEvent event) → void
Test helper: simulate a rotary event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotary() Stream<VooWearRotaryEvent>
Hot stream of rotary input events.
override
shape() Future<VooWearShape>
Resolves the screen shape once at boot. Stable for the lifetime of the configuration.
override
toString() String
A string representation of this object.
inherited

Operators

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