You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a test reports it uses toString, so it would be great to be able to use toPrettier.
Thank you
import'package:freezed_annotation/freezed_annotation.dart';
part'device.freezed.dart';
@freezedclassDevicewith_$Device {
constfactoryDevice({
requiredString id,
requiredString platform,
requiredString version,
requiredbool isRooted,
}) =_Device;
constDevice._();
@overrideStringtoString() {
// I want this to work, also with union classes, but it don't workreturntoPrettier();
}
}
The text was updated successfully, but these errors were encountered:
Hi @MiniSuperDev 🤚! Thanks for filling up the issue!
Unfortunately, overriding the toString() of the freezed class is impossible because of their code generation system.
If you want to apply pretty_string to freezed class, you can do it by device.toString().toPrettier().
When a test reports it uses toString, so it would be great to be able to use toPrettier.
Thank you
The text was updated successfully, but these errors were encountered: