ShimmerConfig class
ShimmerConfig class to customize the loading shimmer colors, duration etc.
Constructors
- ShimmerConfig({Color? baseColor, Color? highlightColor, ShimmerDirection direction = _defaultDirection, Duration duration = _defaultDuration})
Properties
- baseColor → Color
-
The shimmer's base color. Defaults to Colors.grey
300
.final - direction → ShimmerDirection
-
The shimmer's direction. Defaults to ShimmerDirection.ltr.
final
- duration → Duration
-
The shimmer's duration. Defaults to 800ms.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightColor → Color
-
The shimmer's highlight color. Defaults to Colors.grey
200
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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