layout method
      
  
void
layout(
    
- Context context,
- BoxConstraints constraints, {
- bool parentUsesSize = false,
override
    First widget pass to calculate the children layout and bounding box
Implementation
@override
void layout(Context context, BoxConstraints constraints,
    {bool parentUsesSize = false}) {
  _context = inherited != null ? context.inheritFrom(inherited!) : context;
  _child = build!(_context!);
  super.layout(_context!, constraints);
}