DataExplorerTheme constructor

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

Implementation

DataExplorerTheme({
  TextStyle? rootKeyTextStyle,
  TextStyle? propertyKeyTextStyle,
  TextStyle? keySearchHighlightTextStyle,
  TextStyle? valueTextStyle,
  TextStyle? valueSearchHighlightTextStyle,
  TextStyle? focusedKeySearchHighlightTextStyle,
  TextStyle? focusedValueSearchHighlightTextStyle,
  this.indentationLineColor = Colors.grey,
  this.highlightColor,
  this.indentationPadding = 8.0,
  this.propertyIndentationPaddingFactor = 4,
})  : rootKeyTextStyle = rootKeyTextStyle ??
          (propertyKeyTextStyle ??
              DataExplorerTheme.defaultTheme.rootKeyTextStyle),
      propertyKeyTextStyle = propertyKeyTextStyle ??
          DataExplorerTheme.defaultTheme.propertyKeyTextStyle,
      keySearchHighlightTextStyle = keySearchHighlightTextStyle ??
          DataExplorerTheme.defaultTheme.keySearchHighlightTextStyle,
      valueTextStyle =
          valueTextStyle ?? DataExplorerTheme.defaultTheme.valueTextStyle,
      valueSearchHighlightTextStyle = valueSearchHighlightTextStyle ??
          DataExplorerTheme.defaultTheme.valueSearchHighlightTextStyle,
      focusedKeySearchNodeHighlightTextStyle =
          focusedKeySearchHighlightTextStyle ??
              (keySearchHighlightTextStyle ??
                  DataExplorerTheme
                      .defaultTheme.focusedKeySearchNodeHighlightTextStyle),
      focusedValueSearchHighlightTextStyle =
          focusedValueSearchHighlightTextStyle ??
              (valueSearchHighlightTextStyle ??
                  DataExplorerTheme
                      .defaultTheme.focusedValueSearchHighlightTextStyle);