Hibok
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

10 行
428 B

  1. import 'package:flutter/foundation.dart';
  2. import 'package:stack_trace/stack_trace.dart';
  3. void d(Object object) {
  4. var output = "${Trace.current().frames[1].location} | $object";
  5. // the console prints the first 1000+ char and discard the rest so this work around.
  6. final pattern = RegExp('.{1,1000}'); // 1000 is the size of each chunk
  7. pattern.allMatches(output).forEach((match) => debugPrint(match.group(0)));
  8. }