ProLoadingButton constructor

const ProLoadingButton({
  1. Key? key,
  2. required bool isLoading,
  3. required VoidCallback? onPressed,
  4. required Widget child,
  5. ProLoaderType loaderType = ProLoaderType.buttonLoader,
  6. Color? loaderColor,
  7. double loaderSize = 22,
})

Creates a loading button.

Implementation

const ProLoadingButton({
  super.key,
  required this.isLoading,
  required this.onPressed,
  required this.child,
  this.loaderType = ProLoaderType.buttonLoader,
  this.loaderColor,
  this.loaderSize = 22,
});