minAsString function Null safety

String minAsString(
  1. DateTime time
)

Returns given DateTime's minute as a # String formatted MM (ex. '04').

Implementation

String minAsString(DateTime time) {
  return formatTime(time: time, format: 'MM');
}