withListContents method Null safety

SassList withListContents(
  1. Iterable<Value> contents,
  2. {ListSeparator? separator,
  3. bool? brackets}
)

Returns a new list containing contents that defaults to this value's separator and brackets.

Implementation

SassList withListContents(Iterable<Value> contents,
    {ListSeparator? separator, bool? brackets}) {
  return SassList(contents, separator ?? this.separator,
      brackets: brackets ?? hasBrackets);
}