assertString method

SassString assertString([
  1. String? name
])
override

Throws a SassScriptException if this isn't a string.

If this came from a function argument, name is the argument name (without the $). It's used for error reporting.

Implementation

SassString assertString([String? name]) => this;