Comments (7)
I'm not sure if we ever announced this feature, it was for use with Angular templates--is that where you're using it?
I didn't fix it because I thought possibly nobody was using it any more :) but if it still does something useful I can take a look. Thanks.
from built_value.dart.
it's used by the "dart-dio" openapi-generator and is generated for all enums in a spec, so yes I think it will be useful 😊
from built_value.dart.
Good to know! Any chance you could point to an example, please? That way I can make sure it still works as intended for that use case. Thanks.
from built_value.dart.
from built_value.dart.
Hi @ahmednfwela
I think #1253 should do it. Unfortunately, code using built_value will need an update, as the old way class TestEnumMixin = Object with _$TestEnumMixin
is not valid as a mixin in Dart 3.
Instead I think the right way is typedef TestEnumMixin = _$TestEnumMixin
, so my PR adds triggering of generation based on this.
What do you think, please?
Thanks.
from built_value.dart.
looks good! thanks for fixing it
from built_value.dart.
Released in 8.6.1
. Thanks again for reporting! Please let me know if you hit any further issues.
from built_value.dart.
Related Issues (20)
- Still active? HOT 2
- Generation breaks on top level field with type containing `Never` HOT 1
- Serialization does not serialize derived values HOT 2
- Generic types & serializers HOT 8
- Feature request: SerializersBuilder addAllBuilderFactories HOT 2
- Support milliseconds with ISO8601DurationSerializer HOT 3
- escaping invalid field names with a '$' breaks the generator on custom types HOT 1
- Record field type breaks generator HOT 1
- `JsonObject` factory accepts null, but will throw when null is passed HOT 1
- `JsonObject` and sub classes could have a const constructor
- Auto add builder factories for nested built_collection classes HOT 2
- Question: Possible to serialize & deserialize a field of type Map<String, dynamic> ? HOT 14
- Getting enum by wire name HOT 2
- Classes not being generated with new Dart 3 classes modifiers HOT 2
- Support analyzer v6 HOT 1
- Int32 serializers HOT 1
- Allow record serialization (or bypass the error when generating) HOT 10
- Bug: The key of a List is included as an element of said list. HOT 3
- High Memory Usage of built_value_generator to due memoization + keeping all SerializerSourceClass objects in memory HOT 6
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 built_value.dart.