SassList constructor
SassList(
- Iterable<
Value> contents, - ListSeparator _separator, {
- bool brackets = false,
Returns an empty list with the given separator and brackets
.
Implementation
SassList(Iterable<Value> contents, this._separator, {bool brackets = false})
: _contents = List.unmodifiable(contents),
_hasBrackets = brackets {
if (separator == ListSeparator.undecided && asList.length > 1) {
throw ArgumentError(
"A list with more than one element must have an explicit separator.");
}
}