getOsType function
Get OS type
Implementation
String getOsType(OsTypes type) {
switch (type) {
case OsTypes.android:
return 'android';
case OsTypes.ios:
return 'ios';
default:
throw Exception('Os type is not defined.');
}
}