FancyOutlinedButton constructor
const
FancyOutlinedButton({
- Key? key,
- bool? isEnabled,
- required VoidCallback? onPressed,
- required Widget child,
- bool isLoading = false,
- Widget? loadingChild,
- Widget? loadingIndicator,
- ButtonStyle? style,
Creates an OutlinedButton.
Use isEnabled
to avoid ternary statements for onPressed
— you can
disable the button with:
isEnabled: false
oronPressed: null
child
and isLoading
must not be null.
Implementation
const FancyOutlinedButton({
super.key,
super.isEnabled,
required super.onPressed,
required super.child,
super.isLoading,
super.loadingChild,
super.loadingIndicator,
super.style,
});