Shimmer constructor

Shimmer({
  1. Key? key,
  2. required Widget child,
  3. Color backgroundColor = _defaultBackgroundColor,
  4. Gradient? gradient,
  5. Duration period = _defaultPeriod,
})

Implementation

Shimmer({
  super.key,
  required this.child,
  Color backgroundColor = _defaultBackgroundColor,
  Gradient? gradient,
  this.period = _defaultPeriod,
}) : gradient = gradient ?? _getDefaultGradient(backgroundColor);