Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when the Constructor has no params , dart run build_runner build cannot build the correct query result #839

Open
1196185392 opened this issue Aug 8, 2024 · 0 comments

Comments

@1196185392
Copy link

1196185392 commented Aug 8, 2024

1、this is Entity SpaceInfo:
image

2、this is SpaceInfoDao defined:
image

3、but after run build_runner build , I need
@OverRide
Future<List> findAllSpaceInfo() async {
return _queryAdapter.queryList('SELECT * FROM SpaceInfo',
mapper: (Map<String, Object?> row) => SpaceInfo().fromJson(row));
}
image

why can not build with SpaceInfo.fromJson(row) ?

@1196185392 1196185392 changed the title is the construct has no params , dart run build_runner build cannot build the correct query result when the Constructor has no params , dart run build_runner build cannot build the correct query result Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant