Open DarkzyRB opened 1 year ago
Hi @DarkzyRB
Thank you for reporting the issue. You're right, TariffModel
should indeed be nullable in this case. As a temporary solution, I suggest using List<TariffModel>
as the return type and creating a helper method that returns null
if the list is empty.
SAME
I have this problem, which could be a bug (Or I'm doing something wrong):
I declare both methods in the Dao:
Then I generate the code with:
flutter packages pub run build_runner build
But the generated code has an error in the second method:
I'm using: Flutter 3.13.5 Dart 3.1.2
floor: ^1.4.2 build_runner: ^2.4.6 floor_generator: ^1.4.2