asList property Null safety

List asList

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

Implementation

List get asList {
  _assertPositional();
  return value;
}