RegistrationForm constructor
const
RegistrationForm({
- Key? key,
- required TextEditingController nameController,
- required TextEditingController emailController,
- required TextEditingController passwordController,
- required String successRoutePage,
- String btnText = 'Submit',
- 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)
});