SassArgumentList class
A SassScript argument list.
An argument list comes from a rest argument. It's distinct from a normal SassList in that it may contain a keyword map as well as the positional arguments.
- Inheritance
- Available extensions
- Annotations
-
- @sealed
Constructors
-
SassArgumentList(Iterable<
Value> contents, Map<String, Value> keywords, ListSeparator separator)
Properties
-
asList
→ List<
Value> -
This value as a list.
no setterinherited
- hasBrackets → bool
-
Whether this value as a list has brackets.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTruthy → bool
-
Whether the value counts as
true
in an@if
statement and other contexts.no setterinherited -
keywords
→ Map<
String, Value> -
The keyword arguments attached to this argument list.
no setter
-
keywordsWithoutMarking
→ Map<
String, Value> -
Returns the same value as keywords, but doesn't mark them accessed.
no setter
- realNull → Value?
-
Returns Dart's
null
value if this is sassNull, and returnsthis
otherwise.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separator → ListSeparator
-
The separator for this value as a list.
no setterinherited
Methods
-
assertBoolean(
[String? name]) → SassBoolean -
Throws a
SassScriptException
ifthis
isn't a boolean.inherited -
assertCalculation(
[String? name]) → SassCalculation -
Throws a
SassScriptException
ifthis
isn't a calculation.inherited -
assertColor(
[String? name]) → SassColor -
Throws a
SassScriptException
ifthis
isn't a color.inherited -
assertComplexSelector(
{String? name, bool allowParent = false}) → ComplexSelector -
Available on Value, provided by the SassApiValue extension
Parsesthis
as a complex selector, in the same manner as theselector-parse()
function. -
assertCompoundSelector(
{String? name, bool allowParent = false}) → CompoundSelector -
Available on Value, provided by the SassApiValue extension
Parsesthis
as a compound selector, in the same manner as theselector-parse()
function. -
assertFunction(
[String? name]) → SassFunction -
Throws a
SassScriptException
ifthis
isn't a function reference.inherited -
assertMap(
[String? name]) → SassMap -
Throws a
SassScriptException
ifthis
isn't a map.inherited -
assertMixin(
[String? name]) → SassMixin -
Throws a
SassScriptException
ifthis
isn't a mixin reference.inherited -
assertNumber(
[String? name]) → SassNumber -
Throws a
SassScriptException
ifthis
isn't a number.inherited -
assertSelector(
{String? name, bool allowParent = false}) → SelectorList -
Available on Value, provided by the SassApiValue extension
Parsesthis
as a selector list, in the same manner as theselector-parse()
function. -
assertSimpleSelector(
{String? name, bool allowParent = false}) → SimpleSelector -
Available on Value, provided by the SassApiValue extension
Parsesthis
as a simple selector, in the same manner as theselector-parse()
function. -
assertString(
[String? name]) → SassString -
Throws a
SassScriptException
ifthis
isn't a string.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sassIndexToListIndex(
Value sassIndex, [String? name]) → int -
Converts
sassIndex
into a Dart-style index into the list returned by asList.inherited -
toCssString(
{bool quote = true}) → String -
Returns a valid CSS representation of
this
.inherited -
toString(
) → String -
Add parentheses to the debug information for lists to help make the list
bounds clear.
inherited
-
tryMap(
) → SassMap? -
Returns
this
as a SassMap if it is one (including empty lists, which count as empty maps) or returnsnull
if it's not.inherited -
withListContents(
Iterable< Value> contents, {ListSeparator? separator, bool? brackets}) → SassList -
Returns a new list containing
contents
that defaults to this value's separator and brackets.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited