swagger-api / swagger-api/swagger-codegen
Feature request : copyWith for dart
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I am using https://pub.dev/packages/flutter_bloc
We must implement mapEventToState and for changes , we have to create new instance of state
A copyWith method is required , it is too hard do it manually
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the linked flutter_form_validation example, especially my_form_bloc.dart and my_form_state.dart, to understand the requested copyWith usage for Dart states. Then locate the Dart generation entry point and relevant templates or tests; done means generated state classes provide the requested copyWith behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100