PlatformARView constructor

PlatformARView(
  1. TargetPlatform platform
)

Implementation

factory PlatformARView(TargetPlatform platform) {
  switch (platform) {
    case TargetPlatform.android:
      return AndroidARView();
    case TargetPlatform.iOS:
      return IosARView();
    default:
      throw FlutterError;
  }
}