fromNative static method

SensorMeasurement fromNative(
  1. SensorMeasurementNative native, {
  2. bool takeOwnership = true,
})

Implementation

static SensorMeasurement fromNative(SensorMeasurementNative native, {bool takeOwnership = true})  {
    return SensorMeasurement(
      SensorTypeImpl.fromInt(native.type),
      Vector3dImpl.fromNative(native.values, takeOwnership: takeOwnership),
      native.time,
    );
}