showTP method

Future<TimeOfDay?> showTP({
  1. required TimeOfDay initialTime,
  2. TransitionBuilder? builder,
  3. bool useRootNavigator = true,
  4. RouteSettings? routeSettings,
})

Shows a dialog containing a material design time picker.

Equivalent to material.showTimePicker.

Implementation

Future<material.TimeOfDay?> showTP({
  required material.TimeOfDay initialTime,
  material.TransitionBuilder? builder,
  bool useRootNavigator: true,
  material.RouteSettings? routeSettings,
}) {
  return material.showTimePicker(
    context: this,
    initialTime: initialTime,
    builder: builder,
    useRootNavigator: useRootNavigator,
    routeSettings: routeSettings,
  );
}