toDateTime property

DateTime? get toDateTime

Safely parse string to DateTime

Implementation

DateTime? get toDateTime => DateTime.tryParse(this);