asStringOr method

String asStringOr (String defaultValue)

Asserts that value is a string and returns it.

If value doesn't exist, this returns defaultValue.

Implementation

String asStringOr(String defaultValue) => asString;