FormButtonRow<F, P, E extends Enum> constructor

const FormButtonRow<F, P, E extends Enum>({
  1. Key? key,
  2. VoidCallback? onSecondButtonPressed,
  3. required bool isFormValid,
  4. required FormBlocState<dynamic, Enum> formState,
  5. required String registerText,
  6. required String registerSubmittingText,
  7. RegisterButtonType registerType = RegisterButtonType.filled,
  8. VoidCallback? onRegisterPressed,
  9. ButtonStyle? submitButtonStyle,
  10. String secondButtonText = 'Cancel',
  11. ButtonStyle? secondButtonStyle,
  12. bool disablePopWhileSubmitting = false,
  13. double spacing = 12.0,
  14. 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,
});