Streaming Large Files
Process files chunk by chunk.
Why Not Read It All
readAsString loads the whole file into memory. For a huge log or video that can crash your program, so you stream it instead.
Open a Read Stream
Call openRead on a File to get a stream of byte chunks. You process each chunk and let the old ones go.
final stream = File('big.log').openRead();