asListOr method

List asListOr (
  1. List defaultValue
)

Asserts that value is a List and returns it.

If value doesn't exist, this returns defaultValue.

Implementation

List asListOr(List defaultValue) => asList;