save method

Future<void> save()

Implementation

Future<void> save() async {
  try {
    if (root.isEmpty) return;
    await io.write(root, JsonEncoder.withIndent(' ').convert(_map));
  } catch (e) {
    debugPrint('[TRecentDB:save]: ${e.toString()}');
  }
}