Shimmer class

A widget that applies an animated shimmer effect to its child.

Creates a diagonal highlight that sweeps across the child periodically.

Constructors

Shimmer({Key? key, required Component child, Color? baseColor, Color? highlightColor, Duration duration = const Duration(milliseconds: 1500), double angle = 0.5, int highlightWidth = 3})
const

Properties

angle → double
final
baseColor → Color?
final
child → Component
final
duration → Duration
final
hashCode → int
The hash code for this object.
no setterinherited
highlightColor → Color?
final
highlightWidth → int
final
key → Key?
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
inherited
createState() → State<Shimmer>
Creates the mutable state for this component.
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