Git Product home page Git Product logo

Comments (7)

davidmorgan avatar davidmorgan commented on May 18, 2024

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.

ahmednfwela avatar ahmednfwela commented on May 18, 2024

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.

davidmorgan avatar davidmorgan commented on May 18, 2024

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.

ahmednfwela avatar ahmednfwela commented on May 18, 2024

for example:
https://github.com/banool/aptos_api_dart/blob/66e1d4a9514b5a50348b129634feab2e87c984a6/lib/src/model/role_type.dart#L32

from built_value.dart.

davidmorgan avatar davidmorgan commented on May 18, 2024

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.

ahmednfwela avatar ahmednfwela commented on May 18, 2024

looks good! thanks for fixing it

from built_value.dart.

davidmorgan avatar davidmorgan commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.