invert method

Returns a map version of this styles but designed to invert values

Tipically used to remove attributes during compose o merge phases

Implementation

EasyAttributeStyles invert() {
  return EasyAttributeStyles(
      attributes: attributes.map<String, EasyAttribute>(
    (
      String k,
      EasyAttribute<Object?> v,
    ) =>
        MapEntry<String, EasyAttribute>(
      k,
          // force null
      v.clone(null),
    ),
  ));
}