FancyOutlinedButton.icon constructor
const
FancyOutlinedButton.icon({})
Creates an OutlinedButton with a leading icon.
Use isEnabled to avoid ternary statements for onPressed — you can
disable the button with:
isEnabled: falseoronPressed: null
Implementation
const new icon({
super.key,
super.isEnabled,
required super.onPressed,
required Widget super.icon,
required Widget label,
super.isLoading,
Widget? loadingLabel,
super.loadingIndicator,
super.style,
}) : super(child: label, loadingChild: loadingLabel);