asSizedBox method

SizedBox asSizedBox({
  1. double? width,
  2. double? height,
})

转换为 SizedBox,固定尺寸盒子

Implementation

SizedBox asSizedBox({
  double? width,
  double? height,
}) {
  return SizedBox(
    width: width,
    height: height,
    child: this,
  );
}