postFrameCallback method

void postFrameCallback(
  1. dynamic _
)

Implementation

void postFrameCallback(_) {
  var context = widgetKey.currentContext;
  if (context == null) return;

  var newSize = context.size;
  if (oldSize != newSize) {
    widget.onSizeChange(newSize);
    oldSize = newSize;
  }
}