Skip to main content

pretty_tostring 1.0.0 copy "pretty_tostring: ^1.0.0" to clipboard
pretty_tostring: ^1.0.0 copied to clipboard

Generates structured toString() implementations for annotated classes.

example/example.dart

import 'package:pretty_tostring/pretty_tostring.dart';

part '../example.pretty.g.dart';

@PrettyPrintable()
class Person {
  final String name;

  @PrettyObfuscate()
  final String email;

  Person({required this.name, required this.email});

  @override
  String toString() => prettyToString();
}

void main() {
  print(Person(name: 'Erwan', email: 'erwan@example.com'));
}
0
likes
150
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Generates structured toString() implementations for annotated classes.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, source_gen

More

Packages that depend on pretty_tostring