getPropertyAsDateTime method

DateTime? getPropertyAsDateTime(
  1. String key, [
  2. DateTime? def
])

Gets a property with key. Returns the value as DateTime.

def The default value if key not found.

Implementation

DateTime? getPropertyAsDateTime(String key, [DateTime? def]) =>
    getPropertyAs(key, parseDateTime, def);