nullable method

T? nullable(
  1. A? a,
  2. B? b,
  3. C? c,
  4. D? d,
  5. E? e,
  6. F? f,
  7. G? g,
)

Takes nullable versions of arguments and runs the computation if all of them are not null.

Implementation

T? nullable(A? a, B? b, C? c, D? d, E? e, F? f, G? g) => a != null &&
        b != null &&
        c != null &&
        d != null &&
        e != null &&
        f != null &&
        g != null
    ? this(a, b, c, d, e, f, g)
    : null;