operator [] method
Implementation
dynamic operator [](String arg) {
switch (arg) {
default:
throw Exception('Property $arg not supported');
}
}
dynamic operator [](String arg) {
switch (arg) {
default:
throw Exception('Property $arg not supported');
}
}