MBElevatedButton constructor

const MBElevatedButton({
  1. Key? key,
  2. double? elevation,
  3. double? roundness,
  4. Color? buttonColor,
  5. Color? textColor,
  6. required String text,
  7. required dynamic onTapFunction(),
})

Without text and onTapFunction a MBElevatedButton doesn't exist.

Implementation

const MBElevatedButton({
  Key? key,
  this.elevation,
  this.roundness,
  this.buttonColor,
  this.textColor,
  required this.text,
  required this.onTapFunction,
}) : super(key: key);