Login constructor

const Login({
  1. Key? key,
  2. required VoidCallback onSubmit,
  3. required LoginForm formData,
  4. required dynamic onFormChanged(
    1. LoginForm
    ),
  5. bool isLoading = false,
  6. bool isSuccess = false,
  7. String? error,
  8. String placeholderText = 'Enter your phone',
  9. String updateText = 'Get updates on WhatsApp',
  10. TextStyle? updatesTextStyle,
  11. Widget checkboxComponent(
    1. bool,
    2. dynamic (
      1. bool
      )
    )?,
  12. EdgeInsetsGeometry? checkboxContainerPadding,
  13. BoxDecoration? checkboxDecoration,
  14. BoxDecoration? checkedDecoration,
  15. PhoneAuthScreenConfig? config,
  16. 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,
});