toTextProvider method
Converts this provider to a TextMediaProvider, note that the mediaType will stay the same
Throws a StateError when the conversion fails.
Implementation
@override
Future<TextMediaProvider> toTextProvider() {
return toMemoryProvider().then((p) => p.toTextProvider());
}