print_buffer 0.1.1
print_buffer: ^0.1.1 copied to clipboard
Buffers the output of 'print' function and the writes to 'stdout', returns that as a string, optionally preprocesses each call.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add print_bufferWith Flutter:
$ flutter pub add print_bufferThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
print_buffer: ^0.1.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:print_buffer/print_buffer.dart';