SizedBox.fromSize constructor

SizedBox.fromSize({Key key, Widget child, Size size })

Creates a box with the specified size.

Implementation

SizedBox.fromSize({ Key key, Widget child, Size size })
  : width = size?.width,
    height = size?.height,
    super(key: key, child: child);