platform property

SplashViewPlatform platform

The SplashView platform that's used by this SplashVIew.

The default value is AndroidSplashView on Android and CupertinoSplashView on iOS.

Implementation

static SplashViewPlatform get platform {
  if (_platform == null) {
    switch (defaultTargetPlatform) {
      case TargetPlatform.android:
        _platform = AndroidSplashView();
        break;
      case TargetPlatform.iOS:
        _platform = CupertinoSplashView();
        break;
      default:
        throw UnsupportedError(
            "Trying to use the default splashview implementation for $defaultTargetPlatform but there isn't a default one");
    }
  }
  return _platform!;
}
void platform=(SplashViewPlatform platform)

Sets a custom SplashViewPlatform.

This property can be set to use a custom platform implementation for SplashViews.

Setting platform doesn't affect SplashViews that were already created.

The default value is AndroidSplashView on Android and CupertinoSplashView on iOS.

Implementation

static set platform(SplashViewPlatform platform) {
  _platform = platform;
}