copyWith method

NmMagneticGroupsState copyWith({
  1. NmRelationType? activeRelationType,
  2. List<NmPropertyClusterData>? clusters,
  3. List<NmClusteredProperty>? ungroupedProperties,
  4. bool? isAnimating,
})

Copy with.

Implementation

NmMagneticGroupsState copyWith({
  NmRelationType? activeRelationType,
  List<NmPropertyClusterData>? clusters,
  List<NmClusteredProperty>? ungroupedProperties,
  bool? isAnimating,
}) {
  return NmMagneticGroupsState(
    activeRelationType: activeRelationType ?? this.activeRelationType,
    clusters: clusters ?? this.clusters,
    ungroupedProperties: ungroupedProperties ?? this.ungroupedProperties,
    isAnimating: isAnimating ?? this.isAnimating,
  );
}