copyWith method

ClusterManager copyWith({
  1. ArgumentCallback<Cluster>? onClusterTapParam,
})

Creates a new ClusterManager object whose values are the same as this instance, unless overwritten by the specified parameters.

Implementation

ClusterManager copyWith({
  ArgumentCallback<Cluster>? onClusterTapParam,
}) {
  return ClusterManager(
    clusterManagerId: clusterManagerId,
    onClusterTap: onClusterTapParam ?? onClusterTap,
  );
}