How to log large string in flutter

To log the large string you can use the log method from dart:developer

All you need is just add to the import block this:

import 'dart:developer';

And then you can add in place you need to log your data this code

log('data: $data');

This function was designed to map closely to the logging information collected by package:logging.

Read more information about this method here.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *