JsonFileStorage constructor

const JsonFileStorage(
  1. {String filename: 'data.json',
  2. Map<String, dynamic> initialData: const {},
  3. bool clearDataOnLoadError: false}
)

Implementation

const JsonFileStorage({
  this.filename = 'data.json',
  this.initialData = const {},
  this.clearDataOnLoadError = false,
}) : assert(filename != null && initialData != null && clearDataOnLoadError != null);