parseDateTimeWithTimeString method

DateTime? parseDateTimeWithTimeString(
  1. String time
)

Implementation

DateTime? parseDateTimeWithTimeString(String time) {
  if (isEmpty) {
    return null;
  } else {
    if (time.isEmpty) {
      return DateTime.parse(this);
    } else {
      return DateTime.parse("$this $time");
    }
  }
}