How to fully dump / print variable to console in the Dart language?

后端 未结 8 1169
星月不相逢
星月不相逢 2021-01-03 20:37

Hey there I am searching for a function which is printing a dynamic variable as completely as possible to the console in Dart language.

In PHP for i

8条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 21:01

    Try this one..

      void printWrapped(String text) {
        final pattern = new RegExp('.{1,800}'); // 800 is the size of each chunk
        pattern.allMatches(text).forEach((match) => print(match.group(0)));
      }
    

提交回复
热议问题