offPaint method

RepaintBoundary offPaint()

When the layout is complex, if the child elements need to be repainted frequently, it is recommended to use RepaintBoundary to improve performance.

Implementation

RepaintBoundary offPaint() {
  return RepaintBoundary(
    key: key,
    child: this,
  );
}