nullIf method

Widget? nullIf(
  1. bool state
)

Implementation

Widget? nullIf(bool state) {
  return state ? this : null;
}