listOf<T> static method

List<T> listOf<T>(
  1. T item
)

Implementation

static List<T> listOf<T>(T item) => item == null ? [] : [item];