nc-photos/app/lib/use_case/get_file_binary.dart
2022-04-06 02:37:58 +08:00

14 lines
335 B
Dart

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;
}