sized method

SizedBox sized({
  1. Key? key,
  2. double? width,
  3. double? height,
})

Requests a width and/or height, subject to the parent's constraints.

Null dimensions leave that axis unconstrained by this wrapper. Explicit dimensions must be non-negative; infinity requires bounded parent space.

Implementation

SizedBox sized({Key? key, double? width, double? height}) =>
    SizedBox(key: key, width: width, height: height, child: this);