maybeDateTime static method

DateTime? maybeDateTime(
  1. String? timeStamp
)

Implementation

static DateTime? maybeDateTime(String? timeStamp) {
  if (timeStamp == null) return null;
  return DateTime.tryParse(timeStamp);
}