Login constructor
const
Login({
- Key? key,
- required VoidCallback onSubmit,
- required LoginForm formData,
- required dynamic onFormChanged(),
- bool isLoading = false,
- bool isSuccess = false,
- String? error,
- String placeholderText = 'Enter your phone',
- String updateText = 'Get updates on WhatsApp',
- TextStyle? updatesTextStyle,
- Widget checkboxComponent()?,
- EdgeInsetsGeometry? checkboxContainerPadding,
- BoxDecoration? checkboxDecoration,
- BoxDecoration? checkedDecoration,
- PhoneAuthScreenConfig? config,
- LoadingConfig? loaderConfig,
Implementation
const Login({
super.key,
required this.onSubmit,
required this.formData,
required this.onFormChanged,
this.isLoading = false,
this.isSuccess = false,
this.error,
this.placeholderText = 'Enter your phone',
this.updateText = 'Get updates on WhatsApp',
this.updatesTextStyle,
this.checkboxComponent,
this.checkboxContainerPadding,
this.checkboxDecoration,
this.checkedDecoration,
this.config,
this.loaderConfig,
});