import 'package:mockito/mockito.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:path_provider_platform_interface/path_provider_platform_interface.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; class MockPathProviderPlatform extends Mock with MockPlatformInterfaceMixin implements PathProviderPlatform { Future getTemporaryPath() => throw UnimplementedError(); Future getApplicationSupportPath() => throw UnimplementedError(); Future getLibraryPath() => throw UnimplementedError(); Future getApplicationDocumentsPath() async => "./test/data"; Future getExternalStoragePath() => throw UnimplementedError(); Future> getExternalCachePaths() => throw UnimplementedError(); Future getDownloadsPath() => throw UnimplementedError(); @override Future getApplicationCachePath() => throw UnimplementedError(); @override Future?> getExternalStoragePaths({StorageDirectory? type}) => throw UnimplementedError(); }