MoamalatButton constructor

MoamalatButton({
  1. Key? key,
  2. String text = "Pay",
  3. dynamic tapValidation()?,
  4. bool padding = false,
  5. bool forceTap = false,
  6. Color? btnColor,
  7. bool active = true,
  8. bool? outLined = false,
  9. double? width,
  10. double bottomPadding = 0,
  11. double? height,
  12. Color? btnTxtColor,
  13. FontWeight? btnTextFontWeight,
  14. double? btnTextFontSize,
  15. double? borderRadius,
  16. int? maxLines,
  17. required String merchantID,
  18. required String secretKey,
  19. required String merchantReference,
  20. required String terminalID,
  21. required String environmentBaseURL,
  22. required String amount,
  23. required dynamic messageCallBack(
    1. String val
    )?,
  24. required dynamic errorCallBack(
    1. String val
    )?,
  25. 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);