clone static method

Attribute clone(
  1. Attribute origin,
  2. dynamic value
)

Implementation

static Attribute clone(Attribute origin, dynamic value) {
  return Attribute(origin.key, origin.scope, value);
}