KtList<T>.of constructor Null safety

KtList<T>.of(
  1. [T arg0,
  2. T arg1,
  3. T arg2,
  4. T arg3,
  5. T arg4,
  6. T arg5,
  7. T arg6,
  8. T arg7,
  9. T arg8,
  10. T arg9]
)

Returns a new read-only list of given elements.

null is a valid argument

Implementation

factory KtList.of(
    [T arg0,
    T arg1,
    T arg2,
    T arg3,
    T arg4,
    T arg5,
    T arg6,
    T arg7,
    T arg8,
    T arg9]) = KtList<T>._of;