addListIf method

List<T>? addListIf(
  1. bool condition
)

Implementation

List<T>? addListIf(bool condition) {
  return condition ? this : null;
}