getVersionSize static method

VersionSize getVersionSize(
  1. Version version
)

Implementation

static VersionSize getVersionSize(Version version) {
  return version.versionNumber <= 9
      ? VersionSize.small
      : version.versionNumber <= 26
          ? VersionSize.medium
          : VersionSize.large;
}