If constructor Null safety
- Logic condition,
- {List<
Conditional> then = const [], - List<
Conditional> orElse = const []}
If condition is 1, then then executes, otherwise orElse is executed.
Implementation
If(this.condition, {this.then = const [], this.orElse = const []});