spkersten / dart_functional_data

Simple and non-intrusive code generator for lenses and boilerplate of data types
https://pub.dev/packages/functional_data
MIT License
41 stars 15 forks source link

Problem with static const fields #4

Closed ValeriusGC closed 5 years ago

ValeriusGC commented 5 years ago

When i try do something like static const _minCnt = 1; static const _maxCnt = 6;

class Model extends $Model {
  static const _minCnt = 1;
  static const _maxCnt = 6;
...

i got errorous implementation :

abstract class $Model {
  int get _minCnt;
  int get _maxCnt;
  const $Model();
  Model copyWith(
          {int _minCnt,
          int _maxCnt,
spkersten commented 5 years ago

Thanks for reporting this. Looks like static fields aren't filtered out yet.

spkersten commented 5 years ago

I've fixed the issue. New version will be published shortly.