GifController class
- Inheritance
-
- Object
- ChangeNotifier
- GifController
Constructors
-
GifController({bool autoPlay = true, bool loop = true, bool inverted = false, VoidCallback? onStart, VoidCallback? onFinish, ValueChanged<
int> ? onFrame})
Properties
- autoPlay → bool
-
final
- countFrames → int
-
no setter
- currentFrame → GifFrame
-
no setter
- currentIndex ↔ int
-
getter/setter pair
- exception ↔ Exception?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isPaused → bool
-
no setter
- isPlaying → bool
-
no setter
- isReversing → bool
-
no setter
- loop ↔ bool
-
getter/setter pair
- onFinish → VoidCallback?
-
final
-
onFrame
→ ValueChanged<
int> ? -
final
- onStart → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ GifStatus
-
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
configure(
List< GifFrame> frames, {bool updateFrames = false}) → void -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
error(
Exception e) → void -
loading(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
pause(
) → void -
play(
{bool? inverted, int? initialFrame}) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
seek(
int index) → void -
stop(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited