RawShimmerEffect class

A customizable shimmer effect where you can provide your own colors, stops, and other gradient properties

Inheritance

Constructors

RawShimmerEffect({required List<Color> colors, List<double>? stops, AlignmentGeometry begin = const AlignmentDirectional(-1.0, -0.3), AlignmentGeometry end = const AlignmentDirectional(1.0, 0.3), TileMode tileMode = TileMode.clamp, double lowerBound = -0.5, double upperBound = 1.5, Duration duration = const Duration(milliseconds: 2000)})
Builds a RawShimmerEffect with the provided properties
const

Properties

begin AlignmentGeometry
see LinearGradient.begin
final
colors List<Color>
see LinearGradient.colors
final
duration Duration
The duration of the effect animation
finalinherited
end AlignmentGeometry
see LinearGradient.end
final
hashCode int
The hash code for this object.
no setteroverride
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
final
tileMode TileMode
see LinearGradient.tileMode
final
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
inherited
lerp(PaintingEffect? other, double t) PaintingEffect
lerp between two painting effects
override
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.
override