put method

NotusStyle put(
  1. NotusAttribute attribute
)

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

Implementation

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