RegistrationForm constructor

const RegistrationForm({
  1. Key? key,
  2. required TextEditingController nameController,
  3. required TextEditingController emailController,
  4. required TextEditingController passwordController,
  5. required String successRoutePage,
  6. String btnText = 'Submit',
  7. Color btnColor = Colors.green,
})

Implementation

const RegistrationForm({
  super.key,
  required this.nameController,
  required this.emailController,
  required this.passwordController,
  required this.successRoutePage,
  this.btnText = 'Submit', // Provide a default button text
  this.btnColor =
      Colors.green, // Allow the button color to be null (optional)
});