TestDurableVSync class base
A test-only TickerProvider implementation for unit tests and harnesses.
Marked with @visibleForTesting and hidden from package:blooming_flutter/blooming_flutter.dart.
Import package:blooming_flutter/testing.dart to access this in unit tests.
- Implemented types
- Available extensions
- Annotations
Constructors
- TestDurableVSync({bool isActive = true, Ticker tickerFactory(TickerCallback onTick)?})
-
Creates a test-only durable vsync provider.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDurableVsyncActive → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createTicker(
TickerCallback onTick) → Ticker -
Creates a ticker with the given callback.
override
-
drive<
T> (T onTick(Duration elapsed), {bool distinct = false, bool equals(T previous, T next)?, Graceful? graceful}) → Bloom< T> -
Available on TickerProvider, provided by the BloomTickerProviderDriveExtension extension
Drives a reactive Bloom<T> from this TickerProvider by evaluatingonTickon every animation frame tick. -
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