printMinutes method

String printMinutes(
  1. DateTime date
)

Implementation

String printMinutes(DateTime date) {
  final res = '${date.minute}';
  if (res.length == 1) {
    return '0$res';
  }
  return res;
}