ShimmerEffect class abstract

Builds a painting effect where a linear gradient is used to create a shimmer-like effect

Inheritance

Constructors

ShimmerEffect({Color baseColor, Color highlightColor, AlignmentGeometry begin, AlignmentGeometry end, Duration duration})
Builds a _ShimmerEffect with default values
const
factory
ShimmerEffect.raw({required List<Color> colors, List<double>? stops, AlignmentGeometry begin, AlignmentGeometry end, TileMode tileMode, double lowerBound, double upperBound, Duration duration})
Builds a _RawShimmerEffect with default values
const
factory

Properties

begin AlignmentGeometry
see LinearGradient.begin
no setter
colors List<Color>
see LinearGradient.colors
no setter
duration Duration
The duration of the effect animation
finalinherited
end AlignmentGeometry
see LinearGradient.end
no setter
hashCode int
The hash code for this object.
no setterinherited
lowerBound double
The starting value for the animation controller
finalinherited
reverse bool
Whether to animate in reverse
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stops List<double>?
see LinearGradient.stops
no setter
tileMode TileMode
see LinearGradient.tileMode
no setter
upperBound double
The ending value for the animation controller
finalinherited

Methods

createPaint(double t, Rect rect, TextDirection? textDirection) Paint
Evaluates the painting effect at animation value t
override
lerp(PaintingEffect? other, double t) PaintingEffect
lerp between two painting effects
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