firstNonNull<T> function Null safety

T? firstNonNull<T>(
  1. [T? a,
  2. T? b,
  3. T? c,
  4. T? d,
  5. T? e,
  6. T? f]
)

Implementation

T? firstNonNull<T>([T? a, T? b, T? c, T? d, T? e, T? f]) {
  return a ?? b ?? c ?? d ?? e ?? f;
}