copyWith method

StyleExpressionType copyWith({
  1. StyleExpressionTypeKind? kind,
  2. StyleExpressionTypeKind? itemKind,
  3. int? itemCount,
})

A copy of this value with the given members replaced.

Implementation

StyleExpressionType copyWith({
  StyleExpressionTypeKind? kind,
  StyleExpressionTypeKind? itemKind,
  int? itemCount,
}) => StyleExpressionType(
  kind: kind ?? this.kind,
  itemKind: itemKind ?? this.itemKind,
  itemCount: itemCount ?? this.itemCount,
);