updateCircle method
Implementation
Future<void> updateCircle({
required String circleId,
OlaLatLng? center,
double? radius,
String? color,
double? opacity,
double? blur,
String? borderColor,
double? borderWidth,
String? borderLineType,
}) async {
try {
final args = <String, dynamic>{'circleId': circleId};
if (center != null) {
args['latitude'] = center.latitude;
args['longitude'] = center.longitude;
}
if (radius != null) args['radius'] = radius;
if (color != null) args['color'] = color;
if (opacity != null) args['opacity'] = opacity;
if (blur != null) args['blur'] = blur;
if (borderColor != null) args['borderColor'] = borderColor;
if (borderWidth != null) args['borderWidth'] = borderWidth;
if (borderLineType != null) args['borderLineType'] = borderLineType;
await _invoke('updateCircle', args);
} catch (e) {
debugPrint('Error updating circle: $e');
}
}