ifElse method

T ifElse(
  1. bool condition, {
  2. required T other,
})

Implementation

T ifElse(bool condition, {required T other}) => condition ? this : other;