copyWith method

RefType copyWith({
  1. bool? nullable,
  2. HeapType? heapType,
})

Returns a new instance by overriding the values passed as arguments

Implementation

RefType copyWith({
  bool? nullable,
  HeapType? heapType,
}) =>
    RefType(
        nullable: nullable ?? this.nullable,
        heapType: heapType ?? this.heapType);