-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
plus_plugins/packages/device_info_plus/device_info_plus/lib/src/model/android_device_info.dart
Line 346 in 61786a1
I'm getting the value of Instance of 'AndroidBuildVersion' when I call deviceInfoPlugin.androidInfo.version.toString()
The documentation seems to imply that I might get something useful out of version.toString()
I realize the Object class just inherits the default behavior of toString() and just outputs the standard instance.
I think an override here would be quite useful.
This is what I'll be implementing in my code... it'd be useful for Android IMHO! :-)
@override
String toString() {
var output = '';
if (![null, ''].contains(baseOS)) {
output += baseOS;
}
output += release;
if (![null, ''].contains(securityPatch)) {
output += ' ' + securityPatch;
}
output += ' ($sdkInt, $incremental)';
return output;
}
Metadata
Metadata
Assignees
Labels
No labels