copyWith method

FeatureStateSelector copyWith({
  1. String? sourceId,
  2. String? sourceLayerId,
  3. FeatureId? featureId,
  4. String? stateKey,
})

A copy of this value with the given members replaced.

Implementation

FeatureStateSelector copyWith({
  String? sourceId,
  String? sourceLayerId,
  FeatureId? featureId,
  String? stateKey,
}) => FeatureStateSelector(
  sourceId: sourceId ?? this.sourceId,
  sourceLayerId: sourceLayerId ?? this.sourceLayerId,
  featureId: featureId ?? this.featureId,
  stateKey: stateKey ?? this.stateKey,
);