platformLabel property
String
platformLabel
Return the device's platform or device label.
Implementation
static String get platformLabel {
String label = "";
try {
if (Platform.isAndroid) {
label = "Android";
} else if (Platform.isIOS) {
label = "iPhone";
}
} catch (e) {
label = "Unknown";
}
return label;
}