CardLoading constructor Null safety

const CardLoading(
  1. {Key? key,
  2. required double height,
  3. double? width,
  4. EdgeInsets? margin,
  5. double borderRadius = 10,
  6. Duration animationDuration = const Duration(milliseconds: 750),
  7. Duration animationDurationTwo = const Duration(milliseconds: 450),
  8. @Deprecated("This is no longer used, use CardLoadingTheme") Color colorOne = const Color(0xFFE5E5E5),
  9. @Deprecated("This is no longer used, use CardLoadingTheme") Color colorTwo = const Color(0xFFF0F0F0),
  10. CardLoadingTheme cardLoadingTheme = const CardLoadingTheme(),
  11. Curve curve = Curves.easeInOutSine,
  12. bool withChangeDuration = true}
)

Implementation

const CardLoading({
  Key? key,
  required this.height,
  this.width,
  this.margin,
  this.borderRadius = 10,
  this.animationDuration = const Duration(milliseconds: 750),
  this.animationDurationTwo = const Duration(milliseconds: 450),
  @Deprecated("This is no longer used, use CardLoadingTheme")
      this.colorOne = const Color(0xFFE5E5E5),
  @Deprecated("This is no longer used, use CardLoadingTheme")
      this.colorTwo = const Color(0xFFF0F0F0),
  this.cardLoadingTheme = const CardLoadingTheme(),
  this.curve = Curves.easeInOutSine,
  this.withChangeDuration = true,
}) : super(key: key);