toTargetPlatformOs method

TargetPlatformOs toTargetPlatformOs()

Implementation

TargetPlatformOs toTargetPlatformOs() {
  switch (this) {
    case 'ANDROID':
      return TargetPlatformOs.android;
    case 'LINUX':
      return TargetPlatformOs.linux;
  }
  throw Exception('$this is not known in enum TargetPlatformOs');
}