readBoundedFileStringSnapshot function
Implementation
Future<String> readBoundedFileStringSnapshot(
File file, {
required int maxBytes,
Encoding encoding = utf8,
}) async {
final bytes = await readBoundedFileSnapshot(file, maxBytes: maxBytes);
return encoding.decode(bytes);
}