operator [] method Null safety
- dynamic key
Implementation
Context operator [](dynamic key) {
if (key is String) {
return this._getOrInsertByKey(key);
} else if (key is int) {
return this._getByIndex(key);
}
return Context(_dll_handle, nullptr);
}