asList abstract method

List<T> asList()

Returns a read-only dart:core List

This method can be used to interop between the dart:collection and the kt.dart world.

  • Use iter to iterate over the elements of this KtList using a for-loop
  • Use toList to copy the list

Implementation

List<T> asList();