asList<E> method

List<E> asList <E>()

For using this method, We're assuming it is safe to transform to utf8 Strings. Return the bytes as a List decoded using jsonDecode(). Same as as(). If the List contains all String, you can do asList() or get the dynamic form and do the cast yourself.

Implementation

List<E> asList<E>(){
  assert(_isStream != null && !_isStream);
  return jsonDecode(asString()) as List<E>;
}