ParentNodeTheme<T> class

Theme data for parent node styling in FolderView

Annotations

Constructors

ParentNodeTheme({Widget? widget, Widget? widgetResolver(Node<T> node)?, Widget? openWidget, Widget? openWidgetResolver(Node<T> node)?, double width = 20.0, double height = 20.0, EdgeInsets padding = EdgeInsets.zero, EdgeInsets margin = EdgeInsets.zero, TextStyle? textStyle, TextStyle? textStyleResolver(Node<T> node)?, String? labelResolver(Node<T> node)?, Color? hoverColor, Color? splashColor, Color? highlightColor, NodeTooltipTheme<T>? tooltipTheme})
Creates a ParentNodeTheme
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
Height of the icon widget
final
highlightColor Color?
Highlight color for tap feedback
final
hoverColor Color?
Hover color when mouse hovers over the node
final
labelResolver String? Function(Node<T> node)?
Resolver function to dynamically determine the label text based on node data If returns null, falls back to node.label
final
margin EdgeInsets
Margin around the icon widget
final
openWidget Widget?
Widget to display for parent icon (expanded state)
final
openWidgetResolver Widget? Function(Node<T> node)?
Resolver function to dynamically determine the open widget based on node data If returns null, falls back to openWidget
final
padding EdgeInsets
Padding around the icon widget
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashColor Color?
Splash color for tap animations
final
textStyle TextStyle?
Text style for parent nodes
final
textStyleResolver TextStyle? Function(Node<T> node)?
Resolver function to dynamically determine the text style based on node data If returns null, falls back to textStyle
final
tooltipTheme NodeTooltipTheme<T>?
Tooltip theme for parent nodes
final
widget Widget?
Widget to display for parent icon (collapsed state)
final
widgetResolver Widget? Function(Node<T> node)?
Resolver function to dynamically determine the widget based on node data If returns null, falls back to widget
final
width double
Width of the icon widget
final

Methods

copyWith({Widget? widget, Widget? widgetResolver(Node<T> node)?, Widget? openWidget, Widget? openWidgetResolver(Node<T> node)?, double? width, double? height, EdgeInsets? padding, EdgeInsets? margin, TextStyle? textStyle, TextStyle? textStyleResolver(Node<T> node)?, String? labelResolver(Node<T> node)?, Color? hoverColor, Color? splashColor, Color? highlightColor, NodeTooltipTheme<T>? tooltipTheme}) ParentNodeTheme<T>
Creates a copy of this theme with the given fields replaced with new values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp<T>(ParentNodeTheme<T>? a, ParentNodeTheme<T>? b, double t) ParentNodeTheme<T>
Linearly interpolate between two ParentNodeThemes