diff --git a/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart b/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart index 63669f847b2..7a447d5203f 100644 --- a/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart +++ b/packages/url_launcher/url_launcher_android/lib/url_launcher_android.dart @@ -89,7 +89,7 @@ class UrlLauncherAndroid extends UrlLauncherPlatform { case PreferredLaunchMode.platformDefault: // Intentionally treat any new values as platformDefault; see comment in // supportsMode. - // ignore: no_default_cases + // ignore: no_default_cases, unreachable_switch_default default: // By default, open web URLs in the application. inApp = url.startsWith('http:') || url.startsWith('https:'); diff --git a/packages/url_launcher/url_launcher_ios/lib/url_launcher_ios.dart b/packages/url_launcher/url_launcher_ios/lib/url_launcher_ios.dart index bce7dd0586c..bb289abc569 100644 --- a/packages/url_launcher/url_launcher_ios/lib/url_launcher_ios.dart +++ b/packages/url_launcher/url_launcher_ios/lib/url_launcher_ios.dart @@ -82,7 +82,7 @@ class UrlLauncherIOS extends UrlLauncherPlatform { // Intentionally treat any new values as platformDefault; support for any // new mode requires intentional opt-in, otherwise falling back is the // documented behavior. - // ignore: no_default_cases + // ignore: no_default_cases, unreachable_switch_default default: // By default, open web URLs in the application. inApp = url.startsWith('http:') || url.startsWith('https:'); @@ -110,7 +110,7 @@ class UrlLauncherIOS extends UrlLauncherPlatform { // Default is a desired behavior here since support for new modes is // always opt-in, and the enum lives in a different package, so silently // adding "false" for new values is the correct behavior. - // ignore: no_default_cases + // ignore: no_default_cases, unreachable_switch_default default: return false; }