Tree<T, D> class

A tree structure that contains metadata of a rendering tree.

Constructors

Tree({required String id, required TreeNode<T> root, required TypedAccessorFn<T, D> domainFn, required TypedAccessorFn<T, num?> measureFn, TypedAccessorFn<T, Color>? colorFn, TypedAccessorFn<T, Color>? fillColorFn, TypedAccessorFn<T, Color>? patternColorFn, TypedAccessorFn<T, FillPatternType>? fillPatternFn, TypedAccessorFn<T, num>? strokeWidthPxFn, TypedAccessorFn<T, String>? labelFn, TypedAccessorFn<T, TextStyleSpec>? labelStyleFn})
factory

Properties

attributes → TreeAttributes
attributes stores additional key-value pairs of attributes this tree is associated with (e.g. rendererIdKey to renderer).
final
colorFn TypedAccessorFn<TreeNode<T>, Color>?
Accessor function that returns the rendered stroke color for a tree node.
final
domainFn TypedAccessorFn<TreeNode<T>, D>
Accessor function that returns the domain for a tree node.
final
fillColorFn TypedAccessorFn<TreeNode<T>, Color>?
Accessor function that returns the rendered fill color for a tree node. If not provided, then colorFn will be used as a fallback.
final
fillPatternFn TypedAccessorFn<TreeNode<T>, FillPatternType>?
Accessor function that returns the fill pattern for a tree node.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this tree.
final
labelFn TypedAccessorFn<TreeNode<T>, String>?
Accessor function that returns the label for a tree node.
final
labelStyleFn TypedAccessorFn<TreeNode<T>, TextStyleSpec>?
Accessor function that returns the style spec for a tree node label.
final
measureFn TypedAccessorFn<TreeNode<T>, num?>
Accessor function that returns the measure for a tree node.
final
patternColorFn TypedAccessorFn<TreeNode<T>, Color>?
Accessor function that returns the pattern color for a tree node If not provided, then background color is used as default.
final
root TreeNode<T>
Root node of this tree.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeWidthPxFn TypedAccessorFn<TreeNode<T>, num>?
Accessor function that returns the stroke width in pixel for a tree node.
final

Methods

getAttribute<R>(AttributeKey<R> key) → R?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAttribute<R>(AttributeKey<R> key, R value) → void
toSeries() Series<TreeNode<T>, D>
Creates a Series that contains all TreeNodes traversing from the root of this tree.
toString() String
A string representation of this object.
inherited

Operators

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