ShimmerPlaceholderShadeProvider constructor

const ShimmerPlaceholderShadeProvider({
  1. Key? key,
  2. required Duration loopDuration,
  3. required List<Color> colors,
  4. required List<double> stops,
  5. required Widget builder(
    1. BuildContext context,
    2. TablePlaceholderShade placeholderShade
    ),
  6. 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',
      );