get method

PlatformType get()
override

Implementation

PlatformType get() {
  if (kIsWeb) {
    return PlatformType.web;
  }

  if (defaultTargetPlatform == TargetPlatform.android) {
    return PlatformType.android;
  }
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    return PlatformType.ios;
  }

  return PlatformType.web;
}