toSizedBox method

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

To make any widget into SizedBox with all other member of SizedBox

Implementation

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