paint method
Draw itself and its children, according to the calculated
box.offset
Implementation
@override
void paint(Context context) {
  super.paint(context);
  if (position == DecorationPosition.background) {
    decoration.paint(context, box!);
  }
  paintChild(context);
  if (position == DecorationPosition.foreground) {
    decoration.paint(context, box!);
  }
}