clear method

Future<void> clear({
  1. bool flush = false,
})

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

Implementation

Future<void> clear({bool flush = false}) => writeAsBytes([], flush: flush);