MeasuredSize constructor

MeasuredSize(
  1. {Key key,
  2. @required Widget child,
  3. @required MeasureSizeCallback callback,
  4. dynamic offstage: false}
)

Constructs the MeasuredSize instance.

The instance is constructed with a builder for the child widgets. At the completion of the build callback is called with the dimensions of the widget tree. If the widget tree is to be build offstage (hidden), the offstage flag should be set to true.

Implementation

MeasuredSize({Key key,@required this.child,@required this.callback,this.offstage=false}):super(key:key,builder:(context){ return child;});