MotionContext class

Runtime context passed to effects during MotionEffect.attach.

Constructors

MotionContext({required TickerProvider vsync, required bool animationsDisabled, VoidCallback? onRequestRebuild, AnimationController? controller})
const

Properties

animationsDisabled → bool
final
controller → AnimationController?
Set by the engine for effects with MotionDriver.explicit.
final
hashCode → int
The hash code for this object.
no setterinherited
onRequestRebuild → VoidCallback?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
vsync → TickerProvider
final

Methods

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