copyWith method

StyleExpressionInputs copyWith({
  1. double? zoom,
  2. double? colorRampParameter,
  3. Object? feature = _unchanged,
  4. Object? featureState = _unchanged,
  5. Object? globalState = _unchanged,
  6. CanonicalTileId? canonicalTileId,
  7. List<String>? availableImages,
})

A copy of this value with the given members replaced.

Implementation

StyleExpressionInputs copyWith({
  double? zoom,
  double? colorRampParameter,
  Object? feature = _unchanged,
  Object? featureState = _unchanged,
  Object? globalState = _unchanged,
  CanonicalTileId? canonicalTileId,
  List<String>? availableImages,
}) => StyleExpressionInputs(
  zoom: zoom ?? this.zoom,
  colorRampParameter: colorRampParameter ?? this.colorRampParameter,
  feature: identical(feature, _unchanged) ? this.feature : feature,
  featureState: identical(featureState, _unchanged)
      ? this.featureState
      : featureState,
  globalState: identical(globalState, _unchanged)
      ? this.globalState
      : globalState,
  canonicalTileId: canonicalTileId ?? this.canonicalTileId,
  availableImages: availableImages ?? this.availableImages,
);