layout method

  1. @override
PwBox layout(
  1. Context context,
  2. BoxConstraints constraints
)
override

layout API.

Implementation

@override
PwBox layout(Context context, BoxConstraints constraints) {
  return _ShapeBox(
    constraints.constrain(PwSize(width, height)),
    fillColor,
    strokeColor,
    circle: true,
  );
}