operator [] method Null safety

  1. @override
dynamic operator [](
  1. dynamic key
)
override

Implementation

@override
operator [](key) {
  switch(key?.toString()) {
    case "accountId": return this.accountId;
    case "eventId": return this.eventId;
    default: return wrapped[key];
  }
}