copyWith method
PolylineOptions
copyWith({
- List<
GeoPoint> ? points, - LogicalPixel? width,
- Color? color,
- double? erasedPart,
- Optional<
DashedPolylineOptions?> ? dashedPolylineOptions, - Optional<
GradientPolylineOptions?> ? gradientPolylineOptions, - bool? visible,
- Optional<
Object?> ? userData, - ZIndex? zIndex,
- Optional<
LevelId?> ? levelId,
Implementation
PolylineOptions copyWith({
List<GeoPoint>? points,
LogicalPixel? width,
Color? color,
double? erasedPart,
Optional<DashedPolylineOptions?>? dashedPolylineOptions,
Optional<GradientPolylineOptions?>? gradientPolylineOptions,
bool? visible,
Optional<Object?>? userData,
ZIndex? zIndex,
Optional<LevelId?>? levelId
}) {
return PolylineOptions(
points: points ?? this.points,
width: width ?? this.width,
color: color ?? this.color,
erasedPart: erasedPart ?? this.erasedPart,
dashedPolylineOptions: dashedPolylineOptions != null ? dashedPolylineOptions.value : this.dashedPolylineOptions,
gradientPolylineOptions: gradientPolylineOptions != null ? gradientPolylineOptions.value : this.gradientPolylineOptions,
visible: visible ?? this.visible,
userData: userData != null ? userData.value : this.userData,
zIndex: zIndex ?? this.zIndex,
levelId: levelId != null ? levelId.value : this.levelId
);
}