copyWith method

NmPropertyClusterData copyWith({
  1. String? id,
  2. NmRelationType? relationType,
  3. List<NmClusteredProperty>? properties,
  4. Offset? center,
  5. double? radius,
  6. bool? isExpanded,
})

Copy with.

Implementation

NmPropertyClusterData copyWith({
  String? id,
  NmRelationType? relationType,
  List<NmClusteredProperty>? properties,
  Offset? center,
  double? radius,
  bool? isExpanded,
}) {
  return NmPropertyClusterData(
    id: id ?? this.id,
    relationType: relationType ?? this.relationType,
    properties: properties ?? this.properties,
    center: center ?? this.center,
    radius: radius ?? this.radius,
    isExpanded: isExpanded ?? this.isExpanded,
  );
}