writeValue method

  1. @protected
Future<void> writeValue(
  1. String fileName,
  2. T toWrite
)

Implementation

@protected
Future<void> writeValue(String fileName, T toWrite) async {
  return (await _container(fileName))
      .write(json.encode((_toJson ?? (value) => {'value': value})(toWrite)));
}