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 "displayDate":
      return this.displayDate;
    case "dueDate":
      return this.dueDate;
    case "completionDate":
      return this.completionDate;
    case "taskTitle":
      return this.taskTitle;
    case "taskDescription":
      return this.taskDescription;
    case "timeSensitivity":
      return this.timeSensitivity;
    case "isCancelled":
      return this.isCancelled;
    case "dueConfig":
      return this.dueConfig;
    case "displayOffset":
      return this.displayOffset;
    case "isAlert":
      return this.isAlert;
    case "isSkippable":
      return this.isSkippable;
    case "state":
      return this.state;
    case "result":
      return this.result;
    case "operationRef":
      return this.operationRef;
    case "isUnread":
      return this.isUnread;
    case "isNotified":
      return this.isNotified;
    case "setup":
      return this.setup;
    case "contactKey":
      return this.contactKey;
    case "assigneeKey":
      return this.assigneeKey;
    case "frameId":
      return this.frameId;
    case "linkedFactId":
      return this.linkedFactId;
    case "recurrence":
      return this.recurrence;
    default:
      return wrapped[key];
  }
}