setFlat method
@brief Method is used to specify whether the icon is flat or billboarded. @param flat If true, the icon aligns with the location view surface; if false, it maintains orientation to the screen surface. Default: false. @return true if the operation is successful, false otherwise.
Dart code snippet: @snippet location_window_map_objects_example.dart dart_IconMapObject_setFlat
Implementation
@override
bool setFlat(bool flat) {
final _setFlatFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Uint8),
int Function(Pointer<Void>, int)
>('navigine_sdk_flutter_IconMapObject_setFlat__Flat'));
final _flatHandle = navigine_sdk_flutter_bool_ToFfi(flat);
final _handle = this.handle;
final __resultHandle = _setFlatFfi(_handle, _flatHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(_flatHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}