asList<T> abstract method

List<T>? asList<T>({
  1. String? format,

Returns the content of this snapshot as a nullable list of objects of type T.

The content should be a list or null and the items of the list should be convertible to objects of type T.

The returned list is cached and unmodifiable.


List<T>? asList<T>({String? format});