fromInt static method

InsightAnnotation? fromInt(
  1. int annotation
)

Implementation

static InsightAnnotation? fromInt(final int annotation) {
  for (final InsightAnnotation insightAnnotation in values) {
    if (insightAnnotation.value == annotation) {
      return insightAnnotation;
    }
  }
  return null;
}