getGraph method

  1. @override
Graph getGraph(
  1. String tag
)
override

@brief Method is used to obtain graph (within the current sublocation) with the specified identifier or null if no such graph. @param tag graph tag. @return found graph or null @see Graph "Graph".

Dart code snippet: @snippet location_manager_example.dart dart_Sublocation_getGraph

Implementation

@override
Graph getGraph(String tag) {
    final _getGraphFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Pointer<Void> Function(Pointer<Void>, Pointer<Void>),
        Pointer<Void> Function(Pointer<Void>, Pointer<Void>)
      >('navigine_sdk_flutter_Sublocation_getGraph__Tag'));
    final _tagHandle = navigine_sdk_flutter_String_ToFfi(tag);
    final _handle = this.handle;
    final __resultHandle = _getGraphFfi(_handle, _tagHandle);
    navigine_sdk_flutter_String_ReleaseFfiHandle(_tagHandle);
    final _result = navigine_sdk_flutter_Graph_FromFfi(__resultHandle);
    navigine_sdk_flutter_Graph_ReleaseFfiHandle(__resultHandle);
    return _result;
}