performLayout method
Hook for subclasses to perform layout within the given constraints.
Implementation
@override
Size performLayout(BoxConstraints constraints) {
final w = widget as BufferWidget;
return constraints.constrain(Size(w.buffer.width, w.buffer.height));
}