toPointer static method

Pointer<Void> toPointer(
  1. Point<double>? val
)

Implementation

static Pointer<Void> toPointer(math.Point<double>? val) {
  if (val == null) {
    return nullptr;
  }
  final result = malloc<ScreenPointNative>();
  result.ref = ScreenPointImpl.toNative(val);
  return result.cast();
}