size method

Widget size({
  1. double? all,
  2. double? width,
  3. double? height,
})

Implementation

Widget size({double? all, double? width, double? height}) {
  if (all != null) {
    return SizedBox(
      width: all,
      height: all,
      child: this,
    );
  }
  return SizedBox(
    width: width,
    height: height,
    child: this,
  );
}