AnimationConfig class

Animation config

Constructors

AnimationConfig({AlignmentGeometry? startAlign, AlignmentGeometry? endAlign, double? startOpacity, double? endOpacity, Matrix4? startTransform, Matrix4? endTransform, Size? startSize, Size? endSize, Duration? duration, Curve? curve})
All paired params must be provided or null.
const
AnimationConfig.enter({AlignmentGeometry? align, double? opacity, Matrix4? transform, Size? size, Duration? duration, Curve? curve})
Quick create an enter config
AnimationConfig.leave({AlignmentGeometry? align, double? opacity, Matrix4? transform, Size? size, Duration? duration, Curve? curve})
Quick create a leave config

Properties

curve Curve?
final
duration Duration?
final
endAlign AlignmentGeometry?
final
endOpacity double?
final
endSize Size?
final
endTransform Matrix4?
final
hasAlign bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasMatrix bool
no setter
hasOpacity bool
no setter
hasSize bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAlign AlignmentGeometry?
alignment
final
startOpacity double?
opacity
final
startSize Size?
size
final
startTransform Matrix4?
transform
final

Methods

copyWith({AlignmentGeometry? startAlign, AlignmentGeometry? endAlign, double? startOpacity, double? endOpacity, Matrix4? startTransform, Matrix4? endTransform, Size? startSize, Size? endSize, Duration? duration, Curve? curve}) AnimationConfig
Creates a copy of this config but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
snapshot(double value) AnimationSnapshot
Generate a snapshot of current animation value
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator |(AnimationConfig other) AnimationConfig
Combine two config
operator ~() AnimationConfig
Flip config

Static Properties

fadeAndZoomIn AnimationConfig
Zoom in with fade in
final
fadeAndZoomOut AnimationConfig
Zoom out with fade out
final
hFlipIn AnimationConfig
final
hFlipOut AnimationConfig
final
slideAndFadeIn AnimationConfig
From out top to center with fade in
no setter
slideAndFadeOut AnimationConfig
From center to out top with fade out
no setter
slideDown AnimationConfig
no setter
slideIn AnimationConfig
From out top to center
no setter
slideOut AnimationConfig
From center to out top
no setter
slideUp AnimationConfig
no setter
vFlipIn AnimationConfig
final
vFlipOut AnimationConfig
final
zoomIn AnimationConfig
Zoom in
final
zoomOut AnimationConfig
Zoom out
final

Static Methods

slideAndFadeInFrom(Alignment start) AnimationConfig
Slide and fade in from start Alignment
slideAndFadeOutTo(Alignment end) AnimationConfig
Slide and fade out from end Alignment
slideInFrom(Alignment start) AnimationConfig
Slide in from start Alignment
slideOutTo(Alignment end) AnimationConfig
Slide out to end Alignment

Constants

expandIn → const AnimationConfig
Expand in
fadeIn → const AnimationConfig
Fade in
fadeOut → const AnimationConfig
Fade out
shrinkOut → const AnimationConfig
Shrink out