get method
Implementation
@override
Object? get(Token name) {
switch (name.lexeme) {
case 'stream':
return streamController.stream;
case 'add':
return streamController.add;
case 'close':
return streamController.close();
case 'isClosed':
return streamController.isClosed;
case 'isPaused':
return streamController.isPaused;
case 'hasListener':
return streamController.hasListener;
}
throw "Unknown property: ${name.lexeme}";
}