toMapPlatform method

dynamic toMapPlatform()

Implementation

dynamic toMapPlatform() {
  if (defaultTargetPlatform == TargetPlatform.android) {
    return toMapAndroid();
  }
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    return toMapiOS();
  }
  if (kIsWeb) {
    return toWeb();
  }
  throw UnsupportedError("platform not supported yet");
}