memberGet method
Fetch a member by the varName
, in the form of
object.varName
varName
must be of String type.
Implementation
@override
dynamic memberGet(String varName, {String? from}) {
switch (varName) {
case 'OS.now':
return DateTime.now().millisecondsSinceEpoch;
default:
throw HTError.undefined(varName);
}
}