sized method

SizedBox sized({
  1. Size? size,
  2. double? height,
  3. double? width,
})

尺寸控件 >>>

Implementation

SizedBox sized({Size? size, double? height, double? width}) {
  return SizedBox(
    width: width ?? size?.width ?? double.infinity,
    height: height ?? size?.height ?? double.infinity,
    child: this,
  );
}