copyWith method

Memory copyWith({
  1. MemoryTypeInfo? ram,
  2. MemoryTypeInfo? internal,
  3. MemoryTypeInfo? external,
})

copyWith is the method to copy the class.

Implementation

Memory copyWith({
  MemoryTypeInfo? ram,
  MemoryTypeInfo? internal,
  MemoryTypeInfo? external,
}) {
  return Memory(
    ram: ram ?? this.ram,
    internal: internal ?? this.internal,
    external: external ?? this.external,
  );
}