FileDraftStore constructor

FileDraftStore(
  1. Directory directory, {
  2. String suffix = '.draft.json',
})

Creates a store writing drafts inside directory.

The directory is created when the first draft is written.

Implementation

FileDraftStore(this.directory, {this.suffix = '.draft.json'})
  : assert(suffix.isNotEmpty, 'The suffix cannot be empty');