MemoryStorageFile constructor

MemoryStorageFile([
  1. int capacity = 4096
])

Creates a file with room for capacity bytes.

Implementation

MemoryStorageFile([int capacity = 4096])
  : _data = Uint8List(capacity < 64 ? 64 : capacity);