mmvergara / supadart

Typesafe queries in Supabase Flutter! Generate Flutter / Dart 🎯 classes from your Supabase schema.
https://supadart.vercel.app
MIT License
43 stars 5 forks source link

feat: add `copyWith()` method generator #77

Closed bookshiyi closed 2 months ago

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
supabase-schema-dart-class-generator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 21, 2024 4:50am
mmvergara commented 2 months ago

This is really great! thanks for the PR, im thinking of releasing it along with the having the "include methods" option. so the developer can choose which methods are going to be included

bookshiyi commented 2 months ago

This is really great! thanks for the PR, im thinking of releasing it along with the having the "include methods" option. so the developer can choose which methods are going to be included

Yeah, it is a good idea! It will bring a lot of convenience for developer.

btw, Whether to consider adding annotations and dependent on other pub packages to achieve it? like:

method package
copyWith() https://pub.dev/packages/copy_with_extension_gen
hashCode()
operator ==
https://pub.dev/packages/equatable
... ...

At the end of the generation, we need to run build_runner locally, maybe it a problem.

mmvergara commented 2 months ago

added copy with : https://github.com/mmvergara/supadart/pull/78 v1.6.2 about the other methods. i think we'll hold it for now until, someone opens an issue about it. thanks again