FolderNodeTheme<T> class

Theme data for folder node styling in FolderView

Implemented types
Annotations

Constructors

FolderNodeTheme({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 FolderNodeTheme
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 folder 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 folder 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 folder nodes
final
widget → Widget?
Widget to display for folder 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}) → FolderNodeTheme<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
scale(double factor, {required double defaultFontSize}) → FolderNodeTheme<T>
Returns a scaled copy with all spatial fields and text size multiplied by factor.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

lerp<T>(FolderNodeTheme<T>? a, FolderNodeTheme<T>? b, double t) → FolderNodeTheme<T>
Linearly interpolate between two FolderNodeThemes