get method

  1. @override
Object? get(
  1. Token name
)
override

Implementation

@override
Object? get(Token name) {
  if (name.lexeme == "now") {
    return DateTimeNow();
  } else if (name.lexeme == "utc") {
    return DateTimeUTC();
  } else if (name.lexeme == "parse") {
    return DateTimeParse();
  }
  throw "Unknown property: ${name.lexeme}";
}