If constructor Null safety

If(
  1. Logic condition,
  2. {List<Conditional> then = const [],
  3. 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 []});