setBuffer method

  1. @override
bool setBuffer(
  1. double width,
  2. double height
)
override

Extra hit-test padding around the model in pixels. Returns true if the operation is successful, false otherwise.

Example:

bool bufOk = m.setBuffer(4.0, 4.0);
print("Model setBuffer: $bufOk");

Implementation

@override
bool setBuffer(double width, double height) {
    final _setBufferFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, Float, Float),
        int Function(Pointer<Void>, double, double)
      >('navigine_sdk_flutter_ModelMapObject_setBuffer__Width_Height'));
    final __resultHandle = _setBufferFfi(this.ptr, width, height);
    final _result = (__resultHandle != 0);
    exception.checkCallResult();
    return _result;
}