UnitSystem$cast function

UnitSystem? UnitSystem$cast(
  1. dynamic value
)

Implementation

UnitSystem? UnitSystem$cast(value) {
  if (value == UnitSystem.IMPERIAL) return UnitSystem.IMPERIAL;
  if (value == UnitSystem.METRIC) return UnitSystem.METRIC;
  return null;
}