fallback<T> function

  1. @deprecated
T fallback <T>(
  1. T a,
  2. T b(
      ),
    1. [T c(
        ),
      1. T d(
          )]
        )

        Equivalent to || operator in JavaScript.

        Implementation

        @deprecated
        T fallback<T>(T a, T b(), [T c(), T d()]) =>
            c == null ? _fallback(a, b) :
            d == null ? _fallback(_fallback(a, b), c) :
            _fallback(_fallback(_fallback(a, b), c), d);