Logging large strings from Flutter

前端 未结 8 1939
天涯浪人
天涯浪人 2020-12-17 07:50

I\'m trying to build a Flutter App and learning Dart in the process, but I\'m getting kind of frustrated when debugging. I have fetched a resource from an API and now I want

8条回答
  •  春和景丽
    2020-12-17 08:16

    Use debugPrint with the optional parameter to wrap according to the platform's output limit.

    debugPrint(someSuperLongString, wrapWidth: 1024);
    

提交回复
热议问题