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
@override
Widget wrap(BuildContext context, Widget child, TreeEntry<Object> entry) {
return RepaintBoundary(
child: CustomPaint(
painter: createPainter(context, entry),
child: super.wrap(context, child, entry),
),
);
}