BindToHandler method Null safety

int BindToHandler(
  1. Pointer<NativeType> pbc,
  2. Pointer<GUID> bhid,
  3. Pointer<GUID> riid,
  4. Pointer<Pointer<NativeType>> ppv
)

Implementation

int BindToHandler(Pointer pbc, Pointer<GUID> bhid, Pointer<GUID> riid,
        Pointer<Pointer> ppv) =>
    ptr.ref.lpVtbl.value
            .elementAt(3)
            .cast<Pointer<NativeFunction<_BindToHandler_Native>>>()
            .value
            .asFunction<_BindToHandler_Dart>()(
        ptr.ref.lpVtbl, pbc, bhid, riid, ppv);