setAlpha method
Method is used to set the opacity of the map object.
alpha Opacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1.
Returns true if the operation is successful, false otherwise.
Example:
// Set alpha transparency
bool alphaSuccess = _circleMapObject!.setAlpha(0.7);
print("Set circle alpha to 0.7: $alphaSuccess");
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;
}