mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[flutter_releases] Flutter stable 3.22.3 Framework Cherrypicks (#151687)
This commit is contained in:
parent
754bbba14f
commit
b0850beeb2
@ -1 +1 @@
|
||||
edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4
|
||||
235db911ba279722f5e685f38b0ed30fa7e8570a
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user