copyWith method

DataExplorerTheme copyWith({
  1. TextStyle? rootKeyTextStyle,
  2. TextStyle? propertyKeyTextStyle,
  3. TextStyle? keySearchHighlightTextStyle,
  4. TextStyle? valueTextStyle,
  5. TextStyle? valueSearchHighlightTextStyle,
  6. TextStyle? focusedKeySearchNodeHighlightTextStyle,
  7. TextStyle? focusedValueSearchHighlightTextStyle,
  8. Color? indentationLineColor,
  9. Color? highlightColor,
  10. double? indentationPadding,
  11. double? propertyIndentationPaddingFactor,
})

Implementation

DataExplorerTheme copyWith({
  TextStyle? rootKeyTextStyle,
  TextStyle? propertyKeyTextStyle,
  TextStyle? keySearchHighlightTextStyle,
  TextStyle? valueTextStyle,
  TextStyle? valueSearchHighlightTextStyle,
  TextStyle? focusedKeySearchNodeHighlightTextStyle,
  TextStyle? focusedValueSearchHighlightTextStyle,
  Color? indentationLineColor,
  Color? highlightColor,
  double? indentationPadding,
  double? propertyIndentationPaddingFactor,
}) =>
    DataExplorerTheme(
      rootKeyTextStyle: rootKeyTextStyle ?? this.rootKeyTextStyle,
      propertyKeyTextStyle: propertyKeyTextStyle ?? this.propertyKeyTextStyle,
      keySearchHighlightTextStyle:
          keySearchHighlightTextStyle ?? this.keySearchHighlightTextStyle,
      valueTextStyle: valueTextStyle ?? this.valueTextStyle,
      valueSearchHighlightTextStyle:
          valueSearchHighlightTextStyle ?? this.valueSearchHighlightTextStyle,
      indentationLineColor: indentationLineColor ?? this.indentationLineColor,
      highlightColor: highlightColor ?? this.highlightColor,
      indentationPadding: indentationPadding ?? this.indentationPadding,
      propertyIndentationPaddingFactor: propertyIndentationPaddingFactor ??
          this.propertyIndentationPaddingFactor,
      focusedKeySearchHighlightTextStyle:
          focusedKeySearchNodeHighlightTextStyle ??
              this.focusedKeySearchNodeHighlightTextStyle,
      focusedValueSearchHighlightTextStyle:
          focusedValueSearchHighlightTextStyle ??
              this.focusedValueSearchHighlightTextStyle,
    );