toStringTime method

String toStringTime({
  1. String split = ':',
  2. bool? hasMlis,
})

get string in time

final date = DateTime.now();
date.toStringTime(); // 02:11

Implementation

String toStringTime({
  String split = ':',
  bool? hasMlis,
}) {
  return DateUtil.getTimeStr(
    this,
    split: split,
    hasMlis: hasMlis,
  );
}