indentation property

double get indentation

Calculates the amount of indentation of this node. depth * [indent]

indent => the amount of space added per level (example below).

/* given: indent = 20.0
__________________________________
|___node___                      | depth = 0, indentation =  0
|          |___node___           | depth = 1, indentation = 20
|           <-indent->|___node___| depth = 2, indentation = 40
| <-------- indentation -------> | */

Implementation

double get indentation => node.depth * theme.indent;