Comments (9)
The generated file will be like from
const factory State.success({
required A a,
required B? b,
}) = StateSuccess;
to
const factory State.success({
required A a,
B? b,
}) = StateSuccess;
?
It makes sense to be like the second form
from dart_sealed.
const factory State.success({ required A a, B? b, }) = StateSuccess;
Yes, that make sense and has better experience.
from dart_sealed.
HI,
One way to implement this is to omit required
from nullable arguments in constructors.
What's your opinion ?
@SaeedMasoumi
from dart_sealed.
Does the package also support Optional positional parameters? Something like this?
void success(bool status, [ String? value]);
from dart_sealed.
So, I'll change implementation ASAP
😊
from dart_sealed.
Does the package also support Optional positional parameters? Something like this?
void success(bool status, [ String? value]);
No,
All of parameters are named ...
Is this feature needed ?
from dart_sealed.
It's not something I need, but others may need it.
from dart_sealed.
Hi,
I've published version 1.9.0 which addresses your issue ...
from dart_sealed.
That's awesome @FatulM, we can close this issue now.
from dart_sealed.
Related Issues (14)
- Suggestion to add map method and... HOT 26
- Use manifest class constructor for common fields HOT 1
- copyWith generation HOT 1
- Use `mapOrNull` instead of `partialMap` HOT 1
- Suggestion to make sub classes private HOT 1
- Breaks with analyzer 5.0.0 HOT 2
- How can I convert super enums to this package HOT 1
- Functional types are not supported as field types HOT 3
- Mention to ignore generated files on .gitignore and analysis_options.yaml HOT 4
- @WithPrefix does not permit empty string as argument HOT 2
- Default values for fields HOT 2
- Common fields HOT 27
- Unnamed constructor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart_sealed.