setAlpha method
@brief Method is used to set the opacity of the map object. @param alpha Opacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1. @return true if the operation is successful, false otherwise.
Dart code snippet: @snippet location_window_map_objects_example.dart dart_MapObject_setAlpha
Implementation
@override
bool setAlpha(double alpha) {
final _setAlphaFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Float),
int Function(Pointer<Void>, double)
>('navigine_sdk_flutter_MapObject_setAlpha__Alpha'));
final _alphaHandle = navigine_sdk_flutter_double_ToFfi(alpha);
final _handle = this.handle;
final __resultHandle = _setAlphaFfi(_handle, _alphaHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_alphaHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}