PixaRuntimePlatformStatus.current constructor
PixaRuntimePlatformStatus.current()
Returns the current platform/runtime load status.
Implementation
factory PixaRuntimePlatformStatus.current() {
final TargetPlatform platform = defaultTargetPlatform;
final bool supported = !kIsWeb && _isSupportedPlatform(platform);
return pixaPlatformStatusForProbe(
isWeb: kIsWeb,
targetPlatform: platform,
runtimeAvailable: supported ? PixaRuntimeBridge.isAvailable : false,
);
}