$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'day':
return $int($value.day);
case 'hour':
return $int($value.hour);
case 'minute':
return $int($value.minute);
case 'second':
return $int($value.second);
case 'millisecondsSinceEpoch':
return $int($value.millisecondsSinceEpoch);
//
case 'isUtc':
return $bool($value.isUtc);
case 'year':
return $int($value.year);
case 'month':
return $int($value.month);
case 'millisecond':
return $int($value.millisecond);
case 'microsecond':
return $int($value.microsecond);
case 'microsecondsSinceEpoch':
return $int($value.microsecondsSinceEpoch);
case 'weekday':
return $int($value.weekday);
case 'isAfter':
return $Function(_isAfter);
case 'isBefore':
return $Function(_isBefore);
case 'isAtSameMomentAs':
return $Function(_isAtSameMomentAs);
case 'compareTo':
return $Function(_compareTo);
case 'toLocal':
return $Function(_toLocal);
case 'toUtc':
return $Function(_toUtc);
case 'toIso8601String':
return $Function(_toIso8601String);
case 'add':
return $Function(_add);
case 'subtract':
return $Function(_subtract);
case 'difference':
return $Function(_difference);
case 'timeZoneOffset':
return $Duration.wrap($value.timeZoneOffset);
default:
return _superclass.$getProperty(runtime, identifier);
}
}