pinchbv / floor

The typesafe, reactive, and lightweight SQLite abstraction for your Flutter applications
https://pinchbv.github.io/floor/
Apache License 2.0
947 stars 190 forks source link

Casting to double might not work; #816

Open GelidGeorge opened 5 months ago

GelidGeorge commented 5 months ago

This can be more optimal and does not fail to perform ... the returning value can some times be interpreted as num. ((row.values.first ?? 0) as num).toDouble(), as double will fail for number like 1, 2, 3, for integers ...

stephanmantel commented 4 months ago

Could you elaborate a bit further on what you mean?