nullable method

T? nullable(
  1. A? a,
  2. B? b
)

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

Implementation

T? nullable(A? a, B? b) => a != null && b != null ? this(a, b) : null;