We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5eceb78 + 6e1db6d commit 5e980ccCopy full SHA for 5e980cc
2 files changed
lib/models/position.dart
@@ -47,7 +47,7 @@ class Position {
47
course: (json['course'] as num?)?.toDouble() ?? 0.0,
48
address: json['address'] as String?,
49
accuracy: (json['accuracy'] as num?)?.toDouble(),
50
- batteryLevel: json['attributes']?['batteryLevel'] as int?,
+ batteryLevel: (json['attributes']?['batteryLevel'] as num?)?.toInt(),
51
attributes: json['attributes'] as Map<String, dynamic>?,
52
);
53
}
pubspec.yaml
@@ -2,7 +2,7 @@ name: manager
2
description: "Moviflotte"
3
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
4
5
-version: 3.3.11+1
+version: 3.3.12+1
6
7
environment:
8
sdk: ^3.9.2
0 commit comments