preferTonalButton function
- {required void onPressed(
- required Widget label,
- ButtonStyle? style,
- required Widget icon}
Implementation
@pragma("vm:prefer-inline")
Widget preferTonalButton(
{required void Function() onPressed,
required Widget label,
ButtonStyle? style,
required Widget icon}) =>
UserTelemetry().currentModel.preferTonal
? FilledButton.tonalIcon(
onPressed: onPressed,
icon: icon,
style: style,
label: label)
: TextButton.icon(
onPressed: onPressed,
icon: icon,
style: style,
label: label);