copyWith method

JsonMeta copyWith({
  1. int? indentSpaces,
  2. bool? useTabs,
  3. bool? trailingComma,
})

Creates a copy with updated values.

Implementation

JsonMeta copyWith({
  int? indentSpaces,
  bool? useTabs,
  bool? trailingComma,
}) {
  return JsonMeta(
    indentSpaces: indentSpaces ?? this.indentSpaces,
    useTabs: useTabs ?? this.useTabs,
    trailingComma: trailingComma ?? this.trailingComma,
  );
}