postFrameCallback method
void
postFrameCallback(
- dynamic _
Implementation
void postFrameCallback(_) {
var context = widgetKey.currentContext;
if (context == null) return;
var newSize = context.size;
if (oldSize != newSize) {
widget.onSizeChange(newSize);
oldSize = newSize;
}
}