Skip to content

Commit b0850be

Browse files
[flutter_releases] Flutter stable 3.22.3 Framework Cherrypicks (flutter#151687)
1 parent 754bbba commit b0850be

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

bin/internal/engine.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4
1+
235db911ba279722f5e685f38b0ed30fa7e8570a

packages/flutter/lib/src/foundation/constants.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,15 @@ const double precisionErrorTolerance = 1e-10;
7878
/// * [dart:io.Platform], a way to find out the browser's platform that is not
7979
/// overridable in tests.
8080
const bool kIsWeb = bool.fromEnvironment('dart.library.js_util');
81+
82+
/// A constant that is true if the application was compiled to WebAssembly.
83+
///
84+
/// See also:
85+
///
86+
/// * [defaultTargetPlatform], which is used by themes to find out which
87+
/// platform the application is running on (or, in the case of a web app,
88+
/// which platform the application's browser is running in). Can be overridden
89+
/// in tests with [debugDefaultTargetPlatformOverride].
90+
/// * [dart:io.Platform], a way to find out the browser's platform that is not
91+
/// overridable in tests.
92+
const bool kIsWasm = bool.fromEnvironment('dart.tool.dart2wasm');

0 commit comments

Comments
 (0)