clone method

  1. @override
UnknownAttribute clone(
  1. dynamic value
)
override

Creates a new instance of this attribute with the given value.

This method must be implemented by all subclasses to support cloning and deserialization.

Implementation

@override
UnknownAttribute clone(dynamic value) {
  return UnknownAttribute(
    value: value,
    key: key,
  );
}