formateTime method

String formateTime({
  1. bool withSec = false,
})

Implementation

String formateTime({bool withSec = false}) {
  final v = _amPmTimeFormate.format(dateTime);
  if (withSec) return v;
  return v.substring(0, 5) + v.substring(8);
}