JsonFilePersistence<State> constructor

const JsonFilePersistence<State>(
  1. {@required AsyncFileGetter file,
  2. @required JsonConverter<State> converter}
)

Create a new persistence layer with file and converter.

Implementation

const JsonFilePersistence({
  @required this.file,
  @required this.converter,
})  : assert(file != null),
      assert(converter != null);