目录

Circle

Defines a circle on a map.

Properties

Name

Type

Description

circleId

CircleId

Unique circle ID.

clickable

bool

Indicates whether a circle is tappable.

fillColor

Color

Fill color.

center

LatLng

Longitude-latitude coordinates of the center of a circle.

radius

double

Radius of a circle.

strokeColor

Color

Stroke color.

strokeWidth

int

Stroke width of a circle.

visible

bool

Indicates whether a circle is visible.

zIndex

int

Z-index of a circle, which indicates the overlapping sequence of the circle.

strokePattern

List<PatternItem>

Stroke pattern of a circle.

onClick

VoidCallback?

Function executed when a circle is tapped.

Constructor Summary

Constructors

[h2]Circle

Creates a Circle object.

Parameter

Type

Description

circleId

CircleId

Unique circle ID.

clickable

bool

Indicates whether a circle is tappable.

fillColor

Color

Fill color.

center

LatLng

Longitude-latitude coordinates of the center of a circle.

radius

double

Radius of a circle.

strokeColor

Color

Stroke color.

strokeWidth

int

Stroke width of a circle.

visible

bool

Indicates whether a circle is visible.

zIndex

int

Z-index of a circle, which indicates the overlapping sequence of the circle.

strokePattern

List<PatternItem>

Stroke pattern of a circle.

onClick

VoidCallback?

Function executed when a circle is tapped.

Method Summary

Methods

[h2]Circle.updateCopy

Copies an existing Circle object and updates the specified attributes.

Parameter

Type

Description

clickable

bool?

Indicates whether a circle is tappable.

fillColor

Color?

Fill color.

center

LatLng?

Longitude-latitude coordinates of the center of a circle.

radius

double?

Radius of a circle.

strokeColor

Color?

Stroke color.

strokeWidth

int?

Stroke width of a circle.

visible

bool?

Indicates whether a circle is visible.

zIndex

int?

Z-index of a circle, which indicates the overlapping sequence of the circle.

onClick

VoidCallback?

Function executed when a circle is tapped.

strokePattern

List<PatternItem>?

Stroke width of a circle.

Return Type

Description

Circle

Circle object.

Call example:

// Define an InfoWindow object.
Circle circle; 
 
// Call the updateCopy method.
circle = circle!.updateCopy(radius: 4000);

[h2]Circle.clone

Clones a Circle object.

Return Type

Description

Circle

Circle object.

Call example:

// Define a Circle object.
Circle circle; 
Circle circle2; 
 
// Call the clone method.
circle2 = circle!.clone();