ButtonState constructor

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

Implementation

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