copyWith method

MemoryType copyWith({
  1. bool? memory64,
  2. bool? shared,
  3. BigInt? minimum,
  4. Option<BigInt>? maximum,
})

Returns a new instance by overriding the values passed as arguments

Implementation

MemoryType copyWith({
  bool? memory64,
  bool? shared,
  BigInt /*U64*/ ? minimum,
  Option<BigInt /*U64*/ >? maximum,
}) =>
    MemoryType(
        memory64: memory64 ?? this.memory64,
        shared: shared ?? this.shared,
        minimum: minimum ?? this.minimum,
        maximum: maximum != null ? maximum.value : this.maximum);