DataExplorerTheme constructor
DataExplorerTheme({
- TextStyle? rootKeyTextStyle,
- TextStyle? propertyKeyTextStyle,
- TextStyle? keySearchHighlightTextStyle,
- TextStyle? valueTextStyle,
- TextStyle? valueSearchHighlightTextStyle,
- TextStyle? focusedKeySearchHighlightTextStyle,
- TextStyle? focusedValueSearchHighlightTextStyle,
- Color indentationLineColor = Colors.grey,
- Color? highlightColor,
- double indentationPadding = 8.0,
- 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);