getVenueById method

  1. @override
Venue getVenueById(
  1. int id
)
override

@brief Method returns the venue (within the current sublocation) with the specified identifier or null if no such venue exists. @param id venue unique identifier. @return found venue object or null @see Venue "Venue".

Dart code snippet: @snippet location_manager_example.dart dart_Sublocation_getVenueById

Implementation

@override
Venue getVenueById(int id) {
    final _getVenueByIdFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Pointer<Void> Function(Pointer<Void>, Int32),
        Pointer<Void> Function(Pointer<Void>, int)
      >('navigine_sdk_flutter_Sublocation_getVenueById__Id'));
    final _idHandle = navigine_sdk_flutter_int_ToFfi(id);
    final _handle = this.handle;
    final __resultHandle = _getVenueByIdFfi(_handle, _idHandle);
    navigine_sdk_flutter_int_ReleaseFfiHandle(_idHandle);
    final _result = navigine_sdk_flutter_Venue_FromFfi(__resultHandle);
    navigine_sdk_flutter_Venue_ReleaseFfiHandle(__resultHandle);
    return _result;
}