sized method

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

A box with a specified size.

Implementation

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