operator [] method

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

Implementation

@override
operator [](key) {
  switch (key?.toString()) {
    case "creator":
      return this.creator;
    case "dateCreated":
      return this.dateCreated;
    case "assistedTask":
      return this.assistedTask;
    case "group":
      return this.group;
    case "traditionDate":
      return this.traditionDate;
    case "traditionType":
      return this.traditionType;
    case "traditionTitle":
      return this.traditionTitle;
    case "description":
      return this.description;
    case "location":
      return this.location;
    case "emotes":
      return this.emotes;
    default:
      return wrapped[key];
  }
}