to_string_helper 0.0.4 to_string_helper: ^0.0.4 copied to clipboard
Flexibly configure output of toString method using annotations and build_runner.
Simple example #
import 'package:to_string_helper/to_string_helper.dart';
part 'bike.g.dart';
@ToString()
class Bike {
final wheels = 2;
@override
String toString() {
// Name of the generated method is in format _$<className>ToString()
return _$bikeToString(this);
}
}