MoamalatButton constructor
MoamalatButton({
- Key? key,
- String text = "Pay",
- dynamic tapValidation()?,
- bool padding = false,
- bool forceTap = false,
- Color? btnColor,
- bool active = true,
- bool? outLined = false,
- double? width,
- double bottomPadding = 0,
- double? height,
- Color? btnTxtColor,
- FontWeight? btnTextFontWeight,
- double? btnTextFontSize,
- double? borderRadius,
- int? maxLines,
- required String merchantID,
- required String secretKey,
- required String merchantReference,
- required String terminalID,
- required String environmentBaseURL,
- required String amount,
- required dynamic messageCallBack(
- String val
- required dynamic errorCallBack(
- String val
- String? time = "",
Implementation
MoamalatButton({
Key? key,
this.text = "Pay",
this.tapValidation,
this.padding = false,
this.forceTap = false,
this.btnColor,
this.active = true,
this.outLined = false,
this.width,
this.bottomPadding = 0,
this.height,
this.btnTxtColor,
this.btnTextFontWeight,
this.btnTextFontSize,
this.borderRadius,
this.maxLines,
required this.merchantID,
required this.secretKey,
required this.merchantReference,
required this.terminalID,
required this.environmentBaseURL,
required this.amount,
required this.messageCallBack,
required this.errorCallBack,
this.time="",
}) : super(key: key);