Logging large strings from Flutter

How about using the Flutter log from the dart: developer library. This does not seem to have the maximum length limit like print() or debugPrint(). This is the only solution that seems to work fine. Try it as below:

import 'dart:developer';


log(reallyReallyLongText);

The output will be the entire long string without breaks and prefixed with [log]

Leave a Comment