copyWith method
Creates a copy with the given fields replaced.
Implementation
PolygonGeofence copyWith({
String? identifier,
List<GeoPoint>? vertices,
bool? notifyOnEntry,
bool? notifyOnExit,
bool? notifyOnDwell,
int? loiteringDelay,
JsonMap? extras,
}) {
return PolygonGeofence(
identifier: identifier ?? this.identifier,
vertices: vertices ?? this.vertices,
notifyOnEntry: notifyOnEntry ?? this.notifyOnEntry,
notifyOnExit: notifyOnExit ?? this.notifyOnExit,
notifyOnDwell: notifyOnDwell ?? this.notifyOnDwell,
loiteringDelay: loiteringDelay ?? this.loiteringDelay,
extras: extras ?? this.extras,
);
}