ifEqualBool<T, K> static method

K ifEqualBool<T, K>(
  1. bool state, {
  2. required K trueValue(),
  3. required K falseValue(),
})

Implementation

static K ifEqualBool<T, K>(
  bool state, {
  required K Function() trueValue,
  required K Function() falseValue,
}) =>
    state ? trueValue() : falseValue();