toLocalTime property
DateTime
get
toLocalTime
转成当地时间
Implementation
DateTime get toLocalTime {
if (this.isEmptyString) {
return DateTime.now();
}
DateTime time = DateTime.parse(this ?? "").toLocal();
return time;
}