operator [] method

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

Implementation

@override
operator [](key) {
  switch (key?.toString()) {
    case "startDate":
      return this.startDate;
    case "endDate":
      return this.endDate;
    case "phaseKey":
      return this.phaseKey;
    case "name":
      return this.name;
    case "description":
      return this.description;
    case "mainPhoto":
      return this.mainPhoto;
    case "photos":
      return this.photos;
    case "videos":
      return this.videos;
    case "location":
      return this.location;
    default:
      return wrapped[key];
  }
}