Fix mapping of nulls in IntType

This commit is contained in:
Simon Binder 2020-04-18 17:35:26 +02:00
parent 4190c807c9
commit 0220d01a54
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class IntType extends SqlType<int> {
@override
int mapFromDatabaseResponse(dynamic response) {
if (response is int) return response;
if (response == null || response is int /*?*/) return response as int /*?*/;
return int.parse(response.toString());
}