MonSmsProAuthScreen constructor

const MonSmsProAuthScreen({
  1. Key? key,
  2. required String apiKey,
  3. required String senderName,
  4. MonSmsProAuthStyle style = const MonSmsProAuthStyle(),
  5. String? appName,
  6. int otpLength = 4,
  7. String? demoPhoneNumber,
  8. String? demoOTP,
  9. Future<bool> beforeSendOTP(
    1. String phoneNumber
    )?,
  10. String onBeforeSendOTPError = 'User not found',
  11. dynamic onCompleted(
    1. String phoneNumber
    )?,
})

Implementation

const MonSmsProAuthScreen({
  super.key,
  required this.apiKey,
  required this.senderName,
  this.style = const MonSmsProAuthStyle(),
  this.appName,
  // this.paddingSize = 15,
  this.otpLength = 4,
  // this.mainColor = Colors.black,
  // this.buttonTextColor = Colors.white,
  // this.buttonRadius = const BorderRadius.all(Radius.circular(15)),
  this.demoPhoneNumber,
  this.demoOTP,
  this.beforeSendOTP,
  this.onBeforeSendOTPError = 'User not found',
  this.onCompleted,
});