operator [] method

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

Implementation

@override
operator [](key) {
  switch (key?.toString()) {
    case "ref":
      return this.ref;
    case "mschema":
      return this.mschema;
    case "recordType":
      return this.recordType;
    case "category":
      return this.category;
    case "templates":
      return this.templates;
    case "icon":
      return this.icon;
    case "tenses":
      return this.tenses;
    case "factTokens":
      return this.factTokens;
    case "bundle":
      return this.bundle;
    case "dates":
      return this.dates;
    case "links":
      return this.links;
    case "duration":
      return this.duration;
    case "isSingleton":
      return this.isSingleton;
    case "isAttribute":
      return this.isAttribute;
    default:
      return wrapped[key];
  }
}