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
.