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

Add support for default value on copyWith #1082

Closed
markokarajlovic opened this issue May 8, 2024 · 0 comments
Closed

Add support for default value on copyWith #1082

markokarajlovic opened this issue May 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request needs triage

Comments

@markokarajlovic
Copy link

I am using freezed in combination with bloc. I have 1 state class with enums for build and listener.

part 'example_state.freezed.dart';@freezed class ExampleState with _$ExampleState { const ExampleState._(); const factory ExampleState({ @Default(ExampleStateBuildStatus.loading) ExampleStateBuildStatus buildStatus, ExampleStateListenStatus? listenStatus, }) = _ExampleState; } enum ExampleStateBuildStatus { loading, loadSuccess, } enum ExampleStateListenStatus { error, }

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

@markokarajlovic markokarajlovic added enhancement New feature or request needs triage labels May 8, 2024
@markokarajlovic markokarajlovic closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage
Projects
None yet
Development

No branches or pull requests

2 participants