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 "occasion":
      return this.occasion;
    case "gift":
      return this.gift;
    case "notes":
      return this.notes;
    case "giftDate":
      return this.giftDate;
    case "gifteeKeys":
      return this.gifteeKeys;
    case "recipientKey":
      return this.recipientKey;
    default:
      return wrapped[key];
  }
}