sized method

Widget sized({
  1. double? width,
  2. double? height,
})

Fixed width and/or height. logo.sized(width: 48, height: 48)

Implementation

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