// Sets a platform override for desktop to avoid exceptions. See

// https://docs.flutter.dev/desktop#target-platform-override for more info.

void

_enablePlatformOverrideForDesktop

()

if

kIsWeb

&&

Platform

isWindows

||

Platform

isLinux

))

debugDefaultTargetPlatformOverride

TargetPlatform

fuchsia

void

main

()

_enablePlatformOverrideForDesktop

();

runApp

MyApp

());

Description of change

The TargetPlatform enum is now defined as:

enum

TargetPlatform

android