assertMap method

SassMap assertMap(
  1. [String? name]
)
override

Throws a SassScriptException if this isn't a map.

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

Implementation

SassMap assertMap([String? name]) =>
    asList.isEmpty ? const SassMap.empty() : super.assertMap(name);