withCondition method

Widget withCondition(
  1. bool condition,
  2. Widget builder(
    1. Widget overlay
    )
)

Implementation

Widget withCondition(bool condition, Widget Function(Widget child) builder) =>
    condition ? builder(this) : this;