fromInt static method

ImageAngle? fromInt(
  1. int? clockwiseDegree
)

Returns the corresponding ImageAngle, or null if not found.

Implementation

static ImageAngle? fromInt(final int? clockwiseDegree) {
  for (final ImageAngle imageAngle in ImageAngle.values) {
    if (imageAngle.degree == clockwiseDegree) {
      return imageAngle;
    }
  }
  return null;
}