getDeviceType function
Get device type
Implementation
String getDeviceType(DeviceTypes type) {
switch (type) {
case DeviceTypes.android:
return 'android';
case DeviceTypes.ios:
return 'ios';
default:
throw Exception('Device type is not defined.');
}
}