PushableButton constructor Null safety

const PushableButton(
  1. {Key? key,
  2. Widget? child,
  3. required HSLColor hslColor,
  4. required double height,
  5. double elevation = 8.0,
  6. BoxShadow? shadow,
  7. VoidCallback? onPressed}
)

Implementation

const PushableButton({
  Key? key,
  this.child,
  required this.hslColor,
  required this.height,
  this.elevation = 8.0,
  this.shadow,
  this.onPressed,
})  : assert(height > 0),
      super(key: key);