asList property

  1. @override
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

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