conditionedSize method

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

Implementation

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