ReplayCursorFamily class final
The current position within a game's replay, as an index into replayFramesProvider.
Starts at 0 (the initial frame) so the replay plays forward from the
beginning. frameCount is passed by the screen once the frames have
loaded, so stepping and scrubbing clamp to the valid range without the
controller re-reading the async list. Stepping forward one frame keeps the
underlying version consecutive, which is what lets the game animate the
transition; jumping or stepping back is non-consecutive and snaps.
Properties
-
dependencies
→ Iterable<
ProviderOrFamily> ? -
The list of providers that this provider potentially depends on.
finalinherited
- from → Family
-
The family that this provider/family depends on.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoDispose → bool
-
Whether the state associated to this provider should be disposed
automatically when the provider stops being listened.
finalinherited
- name → String?
-
A custom label for providers.
finalinherited
- origin → Family
-
The provider that is overridden.
no setterinherited
- retry → Retry?
-
The retry strategy to use when a provider fails.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
{required String gameId, required int frameCount}) → ReplayCursorProvider - The current position within a game's replay, as an index into replayFramesProvider.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideWith(
ReplayCursor create()) → Override -
Override the provider with a new initialization function.
inherited
-
overrideWith2(
ReplayCursor create(({int frameCount, String gameId}) arg)) → Override -
Override the provider with a new initialization function.
inherited
-
overrideWithBuild(
RunNotifierBuild< ReplayCursor, int> build) → Override -
Override the provider with a new initialization function.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited