index property Null safety

int index

Implementation

int get index {
  switch (this) {
    case FeedbackType.helpful:
      return 0;
    case FeedbackType.notHelpful:
      return 1;
    case FeedbackType.dontKnow:
      return 2;
    default:
      return 0;
  }
}