TitleActionsBuilder typedef
TitleActionsBuilder =
Widget Function(BuildContext context, VoidCallback onCancel, VoidCallback onConfirm, DateTime currentTime)
Builds a replacement for the default Cancel/Done title bar.
Call onCancel to dismiss the picker (also fires the onCancel callback);
call onConfirm to dismiss it returning the current selection (also fires
the onConfirm callback). currentTime is the value currently selected by
the wheels.
The returned widget is laid out within the theme's titleHeight, so keep
it within that height (or raise titleHeight on a custom DatePickerTheme).
Only used when showTitleActions is true.
Implementation
typedef Widget TitleActionsBuilder(
BuildContext context,
VoidCallback onCancel,
VoidCallback onConfirm,
DateTime currentTime,
);