copyWith method

PolygonGeofence copyWith({
  1. String? identifier,
  2. List<GeoPoint>? vertices,
  3. bool? notifyOnEntry,
  4. bool? notifyOnExit,
  5. bool? notifyOnDwell,
  6. int? loiteringDelay,
  7. JsonMap? extras,
})

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,
  );
}