fromKeyValue static method

Attribute? fromKeyValue(
  1. String key,
  2. dynamic value
)

Implementation

static Attribute? fromKeyValue(String key, dynamic value) {
  final origin = _registry[key];
  if (origin == null) {
    return null;
  }
  final attribute = clone(origin, value);
  return attribute;
}