Skip to content

Commit

Permalink
[flutter_releases] Flutter stable 3.22.3 Framework Cherrypicks (flutt…
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherfujino authored Jul 17, 2024
1 parent 754bbba commit b0850be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/internal/engine.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4
235db911ba279722f5e685f38b0ed30fa7e8570a
12 changes: 12 additions & 0 deletions packages/flutter/lib/src/foundation/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit b0850be

Please sign in to comment.