CanMessage.fromPointer constructor

CanMessage.fromPointer(
  1. Pointer<NativeCanMessage> pointer, {
  2. required bool isNative,
})

Stores a reference to a NativeCanMessage and where it was allocated.

Implementation

CanMessage.fromPointer(this.pointer, {required this.isNative}) {
  if (isNative) _finalizer.attach(this, pointer.cast(), detach: this);
}