datePickerMinute method Null safety

  1. @override
String datePickerMinute(
  1. int minute
)
override

Minute that is shown in CupertinoDatePicker spinner corresponding to the given minute value.

Examples: datePickerMinute(1) in:

  • US English: 01
  • Arabic: ٠١

Implementation

@override
String datePickerMinute(int minute) {
  return _doubleDigitMinuteFormat.format(DateTime.utc(0, 0, 0, 0, minute));
}