tryMap method Null safety

SassMap? tryMap()
override

Returns this as a SassMap if it is one (including empty lists, which count as empty maps) or returns null if it's not.

Implementation

SassMap? tryMap() => asList.isEmpty ? const SassMap.empty() : null;