setAttribute method

CNode setAttribute(
  1. String key,
  2. dynamic value
)
inherited

Implementation

CNode setAttribute(String key, dynamic value) {
  final newMap = _attributes;
  newMap[key] = value;
  return copyWith(attributes: newMap);
}