preferTonalButton function

Widget preferTonalButton(
  1. {required void onPressed(
      ),
    1. required Widget label,
    2. ButtonStyle? style,
    3. 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);