toDateTime method

DateTime? toDateTime()

Use DateTime.tryParse to parse the dt property.

Warning: This method does not use the tzid as DateTime does not support timezones.

Implementation

DateTime? toDateTime() => DateTime.tryParse(dt);