How to use Conditional Statement (IF ELSE) on Child Widget in Flutter
During building an app, sometimes we need to show content according to condition using if..else statement. But in Flutter, we can’t place if…else statement directly on child attribute because it accepts only widgets.