Future<File> packageFile(String filePath) async { var mainDir = await packageMainDirectory; return mainDir.subFile(filePath); }