factory FlexValueNative.allocate(double initValue, int initUnit) => allocate<FlexValueNative>(1 * sizeOf<FlexValueNative>()).ref ..value = initValue ..unit = initUnit;