AuthenticationForm constructor
const
AuthenticationForm({
- Key? key,
- required TextEditingController emailController,
- required TextEditingController passwordController,
- required String successRoutePage,
- String btnText = 'Submit',
- Color btnColor = Colors.blue,
Implementation
const AuthenticationForm({
super.key,
required this.emailController,
required this.passwordController,
required this.successRoutePage,
this.btnText = 'Submit', // Provide a default button text
this.btnColor = Colors.blue, // Allow the button color to be null (optional)
});