put method

Puts attribute into this attribute set and returns result as a new set.

Implementation

ParchmentStyle put(ParchmentAttribute attribute) {
  final result = Map<String, ParchmentAttribute>.from(_data);
  result[attribute.key] = attribute;
  return ParchmentStyle._(result);
}