operator [] method

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

Implementation

@override
operator [](key) {
  switch(key?.toString()) {
    case "name": return this.name;
    case "logo": return this.logo;
    case "phases": return this.phases;
    case "parent": return this.parent;
    case "sport": return this.sport;
    case "isInactive": return this.isInactive;
    case "coach": return this.coach;
    default: return wrapped[key];
  }
}