getOsType function

String getOsType(
  1. OsTypes type
)

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.');
  }
}