Update sql_types.dart

prefer final
This commit is contained in:
Yaniv Shaked 2021-12-27 15:50:09 +02:00 committed by GitHub
parent 8b3d0bd370
commit 39da7ee2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class BlobType extends SqlType<Uint8List> {
@override
Uint8List? mapFromDatabaseResponse(dynamic response) {
if (response is String) {
var list = response.codeUnits;
final list = response.codeUnits;
return Uint8List.fromList(list);
}
return response as Uint8List?;