unsupported_platform library

If the current platform is unsupported, throw an error.

Creating images necessary for the splash screens requires the io.dart package, which unfortunately does not have support for JS. Because pub.dev docks pub points for packages not being cross-platform, it is necessary to use conditional imports to avoid losing pub points. This library is included when the package is loaded on an unsupported platform, and its only purpose is to trigger an exception.

Functions

tryCreateSplash() Future<void>
Function that will be called on unsupported platforms, triggering exception.
tryCreateSplashByConfig(Map<String, dynamic> config) → void
Function that will be called on unsupported platforms, triggering exception.
tryRemoveSplash() Future<void>
Function that will be called on unsupported platforms, triggering exception.