file_picker_service.dart 429 B

12345678910111213141516
  1. import 'package:file_picker/file_picker.dart';
  2. class FilePickerResult {
  3. const FilePickerResult(this.files);
  4. /// Picked files.
  5. final List<PlatformFile> files;
  6. }
  7. /// Abstract file picker as a service to implement dependency injection.
  8. abstract class FilePickerService {
  9. Future<String?> getDirectoryPath({
  10. String? title,
  11. }) async =>
  12. throw UnimplementedError('getDirectoryPath() has not been implemented.');
  13. }