fromNative static method

CanonicalUnit fromNative(
  1. CanonicalUnitNative native
)

Implementation

static CanonicalUnit fromNative(CanonicalUnitNative native) {
  return CanonicalUnit(
      unit: to_platform.toPlatformString(native.unit), value: native.value);
}