fromPointer static method
Implementation
static SpeedLimits? fromPointer(ffi.Pointer<ffi.Void> ptr,
{core.bool needFree = true}) {
if (ptr == ffi.nullptr) {
return null;
}
final result =
SpeedLimitsImpl.fromNative(ptr.cast<SpeedLimitsNative>().ref);
if (needFree) {
malloc.free(ptr);
}
return result;
}