From a4edad48fabc2a7e544bc0f4f70367a0cd37e9d9 Mon Sep 17 00:00:00 2001 From: GeekyGeeky Date: Mon, 6 Jan 2025 05:33:20 +0100 Subject: [PATCH] Choe: update main.dart * DRY * Removed repeated file path string --- lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 01e7f29..dfe707b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -74,9 +74,9 @@ class _HomeState extends State { await googleSignIn.authenticatedClient(); final dir = await getApplicationDocumentsDirectory(); - + fa.File file = fa.File("${dir.path}/db_backup.isar"); - await isar.copyToFile("${dir.path}/db_backup.isar"); + await isar.copyToFile(file.path); ga.File fileToUpload = ga.File(); DateTime now = DateTime.now();