nc-photos/app/lib/use_case/get_file_binary.dart

15 lines
335 B
Dart
Raw Normal View History

2021-04-10 06:28:12 +02:00
import 'dart:typed_data';
import 'package:nc_photos/account.dart';
import 'package:nc_photos/entity/file.dart';
class GetFileBinary {
GetFileBinary(this.fileRepo);
/// Get the binary content of a file
Future<Uint8List> call(Account account, File file) =>
fileRepo.getBinary(account, file);
final FileRepo fileRepo;
}