dateFromString function

DateTime? dateFromString(
  1. String? string
)

Implementation

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