MonSmsProAuthScreen constructor
const
MonSmsProAuthScreen({
- Key? key,
- required String apiKey,
- required String senderName,
- MonSmsProAuthStyle style = const MonSmsProAuthStyle(),
- String? appName,
- int otpLength = 4,
- String? demoPhoneNumber,
- String? demoOTP,
- Future<
bool> beforeSendOTP(- String phoneNumber
- String onBeforeSendOTPError = 'User not found',
- dynamic onCompleted(
- 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,
});