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()}');
  }
}