save method

Future<void> save({
  1. bool force = false,
})

Implementation

Future<void> save({bool force = false}) async {
  if (!force && autosave) return;
  final bytes = state.save().exportAsBytes();
  await File(defaultWorldFile).writeAsBytes(bytes);
}