getZoneById method

  1. @override
Zone getZoneById(
  1. int id
)
override

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

Dart code snippet: @snippet location_manager_example.dart dart_Sublocation_getZoneById

Implementation

@override
Zone getZoneById(int id) {
    final _getZoneByIdFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Pointer<Void> Function(Pointer<Void>, Int32),
        Pointer<Void> Function(Pointer<Void>, int)
      >('navigine_sdk_flutter_Sublocation_getZoneById__Id'));
    final _idHandle = navigine_sdk_flutter_int_ToFfi(id);
    final _handle = this.handle;
    final __resultHandle = _getZoneByIdFfi(_handle, _idHandle);
    navigine_sdk_flutter_int_ReleaseFfiHandle(_idHandle);
    final _result = navigine_sdk_flutter_Zone_FromFfi(__resultHandle);
    navigine_sdk_flutter_Zone_ReleaseFfiHandle(__resultHandle);
    return _result;
}