clearSync method

void clearSync({
  1. bool flush = false,
})

Synchronously flushes all the data in this file leaving it to be empty.

Implementation

void clearSync({bool flush = false}) => writeAsBytesSync([], flush: flush);