If statement allows us to a block of code execute when the given condition returns true . In Dart programming, we have a scenario where we want to execute a block of code when it satisfies the given condition. The condition evaluates Boolean values TRUE or FALSE and the decision is made based on these Boolean values.
Read moreHow do you use else in flutter?
Ways to Use If Else Statement in Flutter Widget
Read more