operator [] method Null safety

Context operator [](
  1. 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);
}