assertNoUnits method
Throws a SassScriptException unless this has no units.
If this came from a function argument, name is the argument name
(without the $). It's used for error reporting.
Implementation
void assertNoUnits([String? name]) {
if (!hasUnits) return;
throw SassScriptException('Expected $this to have no units.', name);
}