Shimmer.banner constructor
Shimmer.banner({})
A shimmer effect widget.
Inspired by: https://github.com/hnvn/flutter_shimmer/blob/master/lib/shimmer.dart
Implementation
Shimmer.banner({
super.key,
Color backgroundColor = _defaultBackgroundColor,
double borderRadius = _defaultBorderRadius,
Gradient? gradient,
double height = 200.0,
this.period = _defaultPeriod,
}) : gradient = gradient ?? _getDefaultGradient(backgroundColor),
child = _Container(
borderRadius: borderRadius,
color: backgroundColor,
height: height,
);