DefaultLoadingButton constructor

const DefaultLoadingButton({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. required FutureRequest request,
  5. required dynamic onSuccess({
    1. dynamic value,
    }),
  6. required Function onFailure,
  7. required Color? backgroundColor,
  8. required IconData icon,
  9. required String title,
  10. Validator? validator,
  11. String? failText,
  12. String? loadingText,
  13. String? successText,
})

Implementation

const DefaultLoadingButton(
    {Key? key,
    this.width,
    this.height,
    required this.request,
    required this.onSuccess,
    required this.onFailure,
    required this.backgroundColor,
    required this.icon,
    required this.title,
    this.validator,
    this.failText,
    this.loadingText,
    this.successText})
    : super(key: key);