import 'package:filegate/filegate.dart'; /// Streams provider documents without exposing filegate to workspace logic. class MediaSourceReader { const MediaSourceReader(); Stream> openRead(Uri uri) async* { final session = const Filegate().openRead(uri.toString()); try { yield* session.stream; } finally { await session.cancel(); } } }