diff --git a/bin/internal/engine.version b/bin/internal/engine.version index 56221a26071e5..5e422a69ea33f 100644 --- a/bin/internal/engine.version +++ b/bin/internal/engine.version @@ -1 +1 @@ -edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4 +235db911ba279722f5e685f38b0ed30fa7e8570a diff --git a/packages/flutter/lib/src/foundation/constants.dart b/packages/flutter/lib/src/foundation/constants.dart index ec42df6425ef2..678408ca27274 100644 --- a/packages/flutter/lib/src/foundation/constants.dart +++ b/packages/flutter/lib/src/foundation/constants.dart @@ -78,3 +78,15 @@ const double precisionErrorTolerance = 1e-10; /// * [dart:io.Platform], a way to find out the browser's platform that is not /// overridable in tests. const bool kIsWeb = bool.fromEnvironment('dart.library.js_util'); + +/// A constant that is true if the application was compiled to WebAssembly. +/// +/// See also: +/// +/// * [defaultTargetPlatform], which is used by themes to find out which +/// platform the application is running on (or, in the case of a web app, +/// which platform the application's browser is running in). Can be overridden +/// in tests with [debugDefaultTargetPlatformOverride]. +/// * [dart:io.Platform], a way to find out the browser's platform that is not +/// overridable in tests. +const bool kIsWasm = bool.fromEnvironment('dart.tool.dart2wasm');