TipActionBuilder typedef

TipActionBuilder = Widget Function(BuildContext context, TipAction action, VoidCallback onPressed)

Builds the button for one action of a tip.

onPressed invalidates the tip if the action says so and calls the widget's onAction.

Implementation

typedef TipActionBuilder =
    Widget Function(
      BuildContext context,
      TipAction action,
      VoidCallback onPressed,
    );