asList property

List asList
override

Asserts that value exists and is a List and returns it.

asListOr may be used to provide a default value instead of rejecting the request if value doesn't exist.

Implementation

List get asList => _getTyped('an Array', (value) => value is List);