Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation to exclude some arguments for toString #1099

Open
AlexDochioiu opened this issue Jun 19, 2024 · 0 comments
Open

Annotation to exclude some arguments for toString #1099

AlexDochioiu opened this issue Jun 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AlexDochioiu
Copy link

Hello! I think it would be nice to have some kind of argument annotation that would allow us to exclude specific args from toString. Something along the lines of:

@freezed
sealed class PoolMetadata with _$PoolMetadata {
  PoolMetadata._();

  factory PoolMetadata({
    required String metadataUrl,
    required Uint8List metadataHash,
    @OmitToString required CborLengthType cborLengthType,
  }) = _PoolMetadata;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants