dateFromString function

DateTime? dateFromString(
  1. String? string
)

Implementation

DateTime? dateFromString(String? string) {
  if (string == null) return null;
  return DateTime.parse(string);
}