[flutter_releases] Flutter stable 3.22.3 Framework Cherrypicks (#151687)

This commit is contained in:
Christopher Fujino 2024-07-16 21:43:41 -07:00 committed by GitHub
parent 754bbba14f
commit b0850beeb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -1 +1 @@
edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4 235db911ba279722f5e685f38b0ed30fa7e8570a

View File

@ -78,3 +78,15 @@ const double precisionErrorTolerance = 1e-10;
/// * [dart:io.Platform], a way to find out the browser's platform that is not /// * [dart:io.Platform], a way to find out the browser's platform that is not
/// overridable in tests. /// overridable in tests.
const bool kIsWeb = bool.fromEnvironment('dart.library.js_util'); 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');