MBButton constructor
const
MBButton({})
MBButton decides it's child with the isIconButton value. If isIconButton true then MBButton's child is set to MBElevatedIconButton and MBElevatedButton if set to false.
Implementation
const MBButton({
Key? key,
required this.text,
this.textColor,
this.buttonColor,
this.icon,
this.isIconButton = false,
this.verticalPadding,
this.horizontalPadding,
this.roundness,
this.elevation,
required this.onTapFunction,
}) : super(key: key);