clone method

  1. @override
Const clone({
  1. String? name,
})
override

Makes a copy of this, optionally with the specified name, but the same width.

It is expected that any implementation will override this in a way that returns the same type as itself.

Implementation

@override
Const clone({String? name}) =>
    Const(value, width: width, preferredRadix: preferredRadix);