SmoothSimpleButton constructor Null safety

const SmoothSimpleButton(
  1. {required dynamic child,
  2. required dynamic onPressed,
  3. double minWidth = 15,
  4. double height = 20,
  5. dynamic borderRadius = ROUNDED_BORDER_RADIUS,
  6. dynamic padding = const EdgeInsets.all(10),
  7. dynamic buttonColor}
)

Implementation

const SmoothSimpleButton({
  required this.child,
  required this.onPressed,
  this.minWidth = 15,
  this.height = 20,
  this.borderRadius = ROUNDED_BORDER_RADIUS,
  this.padding = const EdgeInsets.all(10),
  this.buttonColor,
});