SassList.empty constructor Null safety

const SassList.empty(
  1. {ListSeparator? separator,
  2. bool brackets = false}
)

Returns an empty list with the given separator and brackets.

The separator defaults to ListSeparator.undecided, and brackets defaults to false.

Implementation

const SassList.empty({ListSeparator? separator, bool brackets = false})
    : _contents = const [],
      separator = separator ?? ListSeparator.undecided,
      hasBrackets = brackets;