saveToPath method Null safety

void saveToPath(
  1. String path
)

Implementation

void saveToPath(String path) {
  final map = declarations.asMap();
  File(path).writeAsStringSync(jsonEncode(map));
}