formatMinute method

  1. @override
String formatMinute (TimeOfDay timeOfDay)
override

Formats TimeOfDay.minute in the given time of day according to the value of timeOfDayFormat.

Implementation

@override
String formatMinute(TimeOfDay timeOfDay) {
  final int minute = timeOfDay.minute;
  return minute < 10 ? '0$minute' : minute.toString();
}