CreateAccount constructor

const CreateAccount({
  1. Key? key,
  2. bool isEmailRequired = true,
  3. bool isNameRequired = true,
  4. bool isGenderRequired = false,
  5. bool isDobRequired = false,
  6. dynamic createAccountError,
  7. bool showEmail = true,
  8. bool showUserName = true,
  9. bool showGender = false,
  10. bool showDob = false,
  11. TextStyle? inputStyle,
  12. TextStyle? titleStyle,
  13. TextStyle? subTitleStyle,
  14. ButtonStyle? submitButtonStyle,
  15. TextStyle? submitButtonTextStyle,
  16. required TextInputConfig inputConfig,
})

Implementation

const CreateAccount({
  super.key,
  this.isEmailRequired = true,
  this.isNameRequired = true,
  this.isGenderRequired = false,
  this.isDobRequired = false,
  this.createAccountError,
  this.showEmail = true,
  this.showUserName = true,
  this.showGender = false,
  this.showDob = false,
  // required this.onSubmit,
  this.inputStyle,
  this.titleStyle,
  this.subTitleStyle,
  this.submitButtonStyle,
  this.submitButtonTextStyle,
  // this.isLoading = false,
  // this.isSuccess = false,
  required this.inputConfig,
});