logTime function

DateTime logTime([
  1. String? tag
])

打印当前时间

Implementation

DateTime logTime([String? tag]) {
  final now = DateTime.now();
  L.d('${tag != null ? '[$tag] ' : ''}当前时间戳: $now');
  return now;
}