IEvents constructor

IEvents(
  1. FbInterface self
)

Implementation

IEvents(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 2 : 1);
  var idx = startIndex;
  if (version >= 4) {
    _deprecatedCancel = Pointer<
            NativeFunction<
                Void Function(
                    FbInterface, FbInterface)>>.fromAddress(vtable[idx++])
        .asFunction();
  }
  _cancel = Pointer<
          NativeFunction<
              Void Function(
                  FbInterface, FbInterface)>>.fromAddress(vtable[idx++])
      .asFunction();
}