wrap method

Widget wrap(
  1. BuildContext context,
  2. Widget child,
  3. TreeEntry<Object> entry
)

Method used to wrap child in the desired decoration/painting.

Subclasses must override this method to customize whats shown inside of TreeIndentation.

See also:

Implementation

Widget wrap(BuildContext context, Widget child, TreeEntry<Object> entry) {
  return Padding(
    padding: padding.add(EdgeInsetsDirectional.only(
      start: _constrainLevel(entry.level) * indent,
    )),
    child: child,
  );
}