toList<T> method

List<T> toList<T>()

Creates a new list with all arguments that have type T.

Implementation

List<T> toList<T>() {
  return List<T>.from(arguments.whereType<T>());
}