toDate method

DateTime? toDate()

convert String to DateTime if is possible else will return null

Implementation

DateTime? toDate() => _Parser(this).toDate();