SkeletonLoader constructor Null safety

const SkeletonLoader(
  1. {Key? key,
  2. required Widget child,
  3. required bool loading,
  4. Duration duration = const Duration(seconds: 1),
  5. Color startColor = _veryLightGrey,
  6. Color endColor = _lightGrey}
)

Implementation

const SkeletonLoader({
  Key? key,
  required this.child,
  required this.loading,
  this.duration = const Duration(seconds: 1),
  this.startColor = _veryLightGrey,
  this.endColor = _lightGrey,
}) : super(key: key);