saveFile method

void saveFile(
  1. String path
)

Implementation

void saveFile(String path) {
  File(path).writeAsStringSync(toJson());
}