path property

  1. @override
Future<String> get path
override

Implementation

@override
Future<String> get path async {
  final directory = await getDownloadsDirectory();

  if (directory == null) throw Exception('Downloads directory not found');

  return '${directory.path}/$fileName';
}