ShimmerPlaceholderShadeProvider constructor
const
ShimmerPlaceholderShadeProvider({
- Key? key,
- required Duration loopDuration,
- required List<
Color> colors, - required List<
double> stops, - required Widget builder(
- BuildContext context,
- TablePlaceholderShade placeholderShade
- double angle = pi / 4,
Implementation
const ShimmerPlaceholderShadeProvider({
super.key,
required this.loopDuration,
required this.colors,
required this.stops,
required this.builder,
this.angle = pi / 4,
}) : assert(
colors.length == stops.length,
'List of stops must have the same width as the list of colors',
);