copyWith method

GlobalType copyWith({
  1. ValueType? value,
  2. bool? mutable,
})

Returns a new instance by overriding the values passed as arguments

Implementation

GlobalType copyWith({
  ValueType? value,
  bool? mutable,
}) =>
    GlobalType(value: value ?? this.value, mutable: mutable ?? this.mutable);