ButtonState constructor

const ButtonState({
  1. Key? key,
  2. required Widget child(
    1. VoidCallback? onPressed
    ),
  3. (dynamic Function()?, (dynamic, dynamic Function(dynamic data))?)? onSubmit,
  4. LoadingStyle? loadingStyle,
  5. dynamic onFailure(
    1. dynamic data
    )?,
  6. bool? showToastError,
  7. bool? skeletonizerLoading,
  8. Widget? loading,
})

Implementation

const ButtonState({
  super.key,
  required this.child,
  this.onSubmit,
  this.loadingStyle,
  this.onFailure,
  this.showToastError,
  this.skeletonizerLoading,
  this.loading,
});