operator [] method
Implementation
@override
operator [](key) {
switch (key?.toString()) {
case "height":
return this.height;
case "width":
return this.width;
default:
return wrapped[key];
}
}
@override
operator [](key) {
switch (key?.toString()) {
case "height":
return this.height;
case "width":
return this.width;
default:
return wrapped[key];
}
}