nc-photos/lib/use_case/put_file_binary.dart

15 lines
349 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 PutFileBinary {
PutFileBinary(this.fileRepo);
/// Upload file to [path]
Future<void> call(Account account, String path, Uint8List content) =>
fileRepo.putBinary(account, path, content);
final FileRepo fileRepo;
}