ButtonWithLoader constructor

const ButtonWithLoader({
  1. Key? key,
  2. required String title,
  3. required void onPressed(
    1. Function startLoading,
    2. Function stopLoading,
    3. IsSuccess isSuccess,
    4. ButtonSpinnerState btnState,
    )?,
  4. void onLongPressed(
    1. Function startLoading,
    2. Function stopLoading,
    3. IsSuccess isSuccess,
    4. ButtonSpinnerState btnState,
    )?,
  5. TextStyle? titleStyle,
  6. ButtonLoaderData buttonData = const ButtonLoaderData(),
})

Implementation

const ButtonWithLoader({
  super.key,
  required this.title,
  required this.onPressed,
  this.onLongPressed,
  this.titleStyle,
  this.buttonData = const ButtonLoaderData(),
});