copyWith method

JsonTheme copyWith({
  1. TextStyle? defaultStyle,
  2. TextStyle? bracketStyle,
  3. TextStyle? numberStyle,
  4. TextStyle? stringStyle,
  5. TextStyle? boolStyle,
  6. TextStyle? keyStyle,
  7. TextStyle? commentStyle,
  8. TextStyle? errorStyle,
})

Implementation

JsonTheme copyWith({
  TextStyle? defaultStyle,
  TextStyle? bracketStyle,
  TextStyle? numberStyle,
  TextStyle? stringStyle,
  TextStyle? boolStyle,
  TextStyle? keyStyle,
  TextStyle? commentStyle,
  TextStyle? errorStyle,
}) =>
    JsonTheme(
        defaultStyle: defaultStyle ?? this.defaultStyle,
        bracketStyle: bracketStyle ?? this.bracketStyle,
        numberStyle: numberStyle ?? this.numberStyle,
        stringStyle: stringStyle ?? this.stringStyle,
        boolStyle: boolStyle ?? this.boolStyle,
        keyStyle: keyStyle ?? this.keyStyle,
        commentStyle: commentStyle ?? this.commentStyle,
        errorStyle: errorStyle ?? this.errorStyle);