wrap method
Method used to wrap child
in the desired decoration/painting.
Subclasses must override this method to customize whats shown inside of TreeIndentation.
See also:
- AbstractLineGuide, an interface for working with line painting;
Implementation
Widget wrap(BuildContext context, Widget child, TreeEntry<Object> entry) {
return Padding(
padding: padding.add(EdgeInsetsDirectional.only(
start: _constrainLevel(entry.level) * indent,
)),
child: child,
);
}