copyWith method

VariableUsage copyWith({
  1. bool? isMutated,
  2. int? firstMutationLine,
})

Implementation

VariableUsage copyWith({bool? isMutated, int? firstMutationLine}) {
  return VariableUsage(
    name: name,
    type: type,
    isMutated: isMutated ?? this.isMutated,
    declarationOffset: declarationOffset,
    declarationLine: declarationLine,
    firstMutationLine: firstMutationLine ?? this.firstMutationLine,
  );
}