addIfNotNull method

void addIfNotNull(
  1. T? blah
)

add to list if the item is not null

Implementation

void addIfNotNull(T? blah) {
  if (blah != null) {
    this.add(blah);
  }
}