Hibok
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
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. }