NiceRegistrationForm constructor

const NiceRegistrationForm({
  1. Key? key,
  2. required Future<void> onRegister(
    1. Map<String, String> data
    ),
  3. VoidCallback? onSignIn,
  4. String title = 'Create Account',
  5. List<String> fields = const ['name', 'email', 'password', 'confirmPassword'],
  6. bool requireTerms = true,
  7. String termsText = 'I agree to the Terms of Service',
  8. VoidCallback? onTermsPressed,
  9. bool loading = false,
  10. String? error,
  11. int passwordMinLength = 8,
})

Implementation

const NiceRegistrationForm({
  super.key,
  required this.onRegister,
  this.onSignIn,
  this.title = 'Create Account',
  this.fields = const ['name', 'email', 'password', 'confirmPassword'],
  this.requireTerms = true,
  this.termsText = 'I agree to the Terms of Service',
  this.onTermsPressed,
  this.loading = false,
  this.error,
  this.logo,
  this.passwordMinLength = 8,
});