listOf<T> function

KtList<T> listOf <T>(
  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.

Elements aren't allowed to be null. If your list requires null values use listFrom


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