You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
}
why can not build with SpaceInfo.fromJson(row) ?
The text was updated successfully, but these errors were encountered:
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
1、this is Entity SpaceInfo:
2、this is SpaceInfoDao defined:
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));
}
why can not build with SpaceInfo.fromJson(row) ?
The text was updated successfully, but these errors were encountered: