toStringTime method
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,
);
}