SmoothMainButton constructor Null safety

const SmoothMainButton(
  1. {required String text,
  2. required dynamic onPressed,
  3. double width = double.infinity,
  4. bool important = true,
  5. double height = 56.0}
)

Implementation

const SmoothMainButton({
  required this.text,
  required this.onPressed,
  this.width = double.infinity,
  this.important = true,
  this.height = 56.0,
});