castToNodes method

List<T> castToNodes(
  1. List list
)

Implementation

List<T> castToNodes(List list) {
  if (list is List<T>) return list;
  return list.cast<T>();
}