setTitle method

  1. @override
bool setTitle(
  1. String title
)
override

Method is used to set the title of the map object. title The title to display on the location view. Returns true if the operation is successful, false otherwise.

Example:

// Set title
bool titleSuccess = _circleMapObject!.setTitle("Circle Object");
print("Set circle title to 'Circle Object': $titleSuccess");

Implementation

@override
bool setTitle(String title) {
    final _setTitleFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, Pointer<Void>),
        int Function(Pointer<Void>, Pointer<Void>)
      >('navigine_sdk_flutter_MapObject_setTitle__Title'));
    final _titleHandle = navigine_sdk_flutter_String_ToFfi(title);
    final _handle = this.handle;
    final __resultHandle = _setTitleFfi(_handle, _titleHandle);
    navigine_sdk_flutter_String_ReleaseFfiHandle(_titleHandle);
    final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
    navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
    return _result;
}