createBoxPainter method

  1. @override
_CustomPainter createBoxPainter([
  1. VoidCallback? onChanged
])
override

Returns a BoxPainter that will paint this decoration.

The onChanged argument configures BoxPainter.onChanged. It can be omitted if there is no chance that the painter will change (for example, if it is a BoxDecoration with definitely no DecorationImage).

Implementation

@override
_CustomPainter createBoxPainter([VoidCallback? onChanged]) {
  return new _CustomPainter(
    this,
    onChanged,
    bottomLeftRadius: bottomLeftRadius,
    bottomRightRadius: bottomRightRadius,
    color: color,
    height: height,
    horizontalPadding: horizontalPadding,
    tabPosition: tabPosition,
    topLeftRadius: topLeftRadius,
    topRightRadius: topRightRadius,
    paintingStyle: paintingStyle,
    strokeWidth: strokeWidth,
  );
}