conditional method

Widget conditional(
  1. bool condition
)

Implementation

Widget conditional(bool condition) => condition ? this : SizedBox.shrink();