TranslateEffect class
- Inheritance
-
- Object
- ScrollEffect
- TranslateEffect
Constructors
- TranslateEffect({int startOffset = 10, bool snap = true, Axis animationAxis = Axis.horizontal, AnimationType type = AnimationType.always})
-
const
Properties
- animationAxis → Axis
-
Animation axis
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snap → bool
-
Snap back to original position when not scrolling
Only effective on the AnimatedItem
final
- startOffset → int
-
The animation start offset
Use negative numbers to reverse translate
final
- type → AnimationType
-
Animation type
final
Methods
-
buildEffect(
{required Widget child, required int index, required double position, double? itemWidth, double? itemHeight, bool? isScrolling, required AnimationScrollDirection direction}) → Widget -
override
-
isStatic(
double delta, AnimationType type, AnimationScrollDirection direction, [bool snap = true, bool? isScrolling]) → bool -
inherited
-
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