SizeService class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
calculateContentHeight({required int itemCount, double rowHeight = 40.0, double rowSpacing = 0.0, double topPadding = 0.0, double bottomPadding = 0.0})
→ double
-
Calculate the total content height from a flat item count.
-
calculateContentWidth<T>({required List<FlatNode<T>> flatNodes, required FolderNodeTheme folderTheme, required ParentNodeTheme parentTheme, required ChildNodeTheme childTheme, required ExpandIconTheme expandIconTheme, double leftPadding = 0.0, double rightPadding = 16.0, double maxWidth = double.infinity})
→ double
-
Calculate the total content width from visible flat nodes.
-
calculateSingleNodeWidth<T>({required Node<T> node, required int depth, required FolderNodeTheme folderTheme, required ParentNodeTheme parentTheme, required ChildNodeTheme childTheme, required ExpandIconTheme expandIconTheme, double leftPadding = 0.0, double rightPadding = 16.0})
→ double
-
Calculate the width of a single node (public, for lazy per-item measurement).
-
clearTextWidthCache()
→ void
-
Clears the text width cache. Call when theme changes.