FormButtonRow<F, P, E extends Enum> constructor
const
FormButtonRow<F, P, E extends Enum> ({
- Key? key,
- VoidCallback? onSecondButtonPressed,
- required bool isFormValid,
- required FormBlocState<
dynamic, Enum> formState, - required String registerText,
- required String registerSubmittingText,
- RegisterButtonType registerType = RegisterButtonType.filled,
- VoidCallback? onRegisterPressed,
- ButtonStyle? submitButtonStyle,
- String secondButtonText = 'Cancel',
- ButtonStyle? secondButtonStyle,
- bool disablePopWhileSubmitting = false,
- double spacing = 12.0,
- bool expandEqually = true,
Implementation
const FormButtonRow({
super.key,
this.onSecondButtonPressed,
required this.isFormValid,
required this.formState,
required this.registerText,
required this.registerSubmittingText,
this.registerType = RegisterButtonType.filled,
this.onRegisterPressed,
this.submitButtonStyle,
this.secondButtonText = 'Cancel',
this.secondButtonStyle,
this.disablePopWhileSubmitting = false,
this.spacing = 12.0,
this.expandEqually = true,
});