Get file size in bytes
Future<int> getFileSize(String filePath) async { final file = File(filePath); if (await file.exists()) { return file.length(); } return 0; }