asDateTime property

DateTime get asDateTime

Asserts that value exists, is a string, and can be parsed as a DateTime and returns it.

asDateTimeOr may be used to provide a default value instead of rejecting the request if value doesn't exist.

Implementation

DateTime get asDateTime => _getParsed('date/time', DateTime.parse);