cloneDateTime static method

DateTime? cloneDateTime(
  1. DateTime? dateTime
)

Implementation

static DateTime? cloneDateTime(DateTime? dateTime) {
  return dateTime != null
      ? DateTime.fromMillisecondsSinceEpoch(dateTime.millisecondsSinceEpoch,
          isUtc: dateTime.isUtc)
      : null;
}