ReplayCursorProvider 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
- argument → Object?
-
If this provider was created with the
.familymodifier,argumentis the variable that was used.finalinherited -
dependencies
→ Iterable<
ProviderOrFamily> ? -
The list of providers that this provider potentially depends on.
finalinherited
- from → Family?
-
If this provider was created with the
.familymodifier,fromis the.familyinstance.finalinherited - hashCode → int
-
The hash code for this object.
no setteroverride
- 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
-
notifier
→ Refreshable<
ReplayCursor> -
no setterinherited
-
origin
→ ProviderBase<
int> -
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
-
create(
) → ReplayCursor - @nodoc
-
debugGetCreateSourceHash(
) → String - A debug-only function for obtaining a hash of the source code of the initialization function.
-
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
-
overrideWithBuild(
RunNotifierBuild< ReplayCursor, int> build) → Override -
Overrides the
buildmethod of a notifier, allowing you to replace the default implementation with a custom one for testing or specific use cases.inherited -
overrideWithValue(
int value) → Override - Overrides a provider with a value, ejecting the default behavior.
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override