toPlatform method

Platform toPlatform()

Implementation

Platform toPlatform() {
  switch (this) {
    case 'WEB':
      return Platform.web;
  }
  throw Exception('$this is not known in enum Platform');
}