StateButton constructor
const
StateButton({
- Key? key,
- required StateFunction<
StateButton, ButtonState> onTap, - required Widget initial,
- Widget? fail,
- Widget? success,
- Widget? loader,
- ButtonStyle? style,
- Widget? icon,
- Widget? disable,
- Widget? loaderIcon,
- Widget? failIcon,
- Widget? successIcon,
- Widget? disableIcon,
- Set<
ButtonState> ? states,
Implementation
const StateButton(
{Key? key,
required this.onTap,
required this.initial,
this.fail,
this.success,
this.loader,
this.style,
this.icon,
this.disable,
this.loaderIcon,
this.failIcon,
this.successIcon,
this.disableIcon,
this.states})
: super(key: key);