FlexValueNative.allocate constructor

FlexValueNative.allocate(
  1. double initValue,
  2. int initUnit
)

Implementation

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