toPointer static method

Pointer<Void> toPointer(
  1. Category? val
)

Implementation

static Pointer<Void> toPointer(Category? val)  {
    if (val == null) {
      return nullptr;
    }
    final result = malloc<CategoryNative>();
    result.ref = toNative(val);
    return result.cast();
}