Use kIsWeb instead of private _kIsBrowser (#55333)

This commit is contained in:
Shi-Hao Hong 2020-04-21 19:28:02 -07:00 committed by GitHub
parent 7e997d2027
commit 5ed54d3860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,9 +25,6 @@ import 'text_editing.dart';
export 'dart:ui' show TextAffinity;
// Whether we're compiled to JavaScript in a web browser.
const bool _kIsBrowser = identical(0, 0.0);
/// Indicates how to handle the intelligent replacement of dashes in text input.
///
/// See also:
@ -1056,7 +1053,7 @@ class TextInput {
static bool _debugEnsureInputActionWorksOnPlatform(TextInputAction inputAction) {
assert(() {
if (_kIsBrowser) {
if (kIsWeb) {
// TODO(flutterweb): what makes sense here?
return true;
}