File tree Expand file tree Collapse file tree
packages/cupertino_ui/lib/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,9 +340,9 @@ class CupertinoTextField extends StatefulWidget {
340340 assert (maxLength == null || maxLength > 0 ),
341341 // Assert the following instead of setting it directly to avoid surprising the user by silently changing the value they set.
342342 assert (
343- ! identical ( textInputAction, TextInputAction .newline) ||
343+ textInputAction != TextInputAction .newline ||
344344 maxLines == 1 ||
345- ! identical ( keyboardType, TextInputType .text) ,
345+ keyboardType != TextInputType .text,
346346 'Use keyboardType TextInputType.multiline when using TextInputAction.newline on a multiline TextField.' ,
347347 ),
348348 keyboardType =
@@ -480,9 +480,9 @@ class CupertinoTextField extends StatefulWidget {
480480 assert (maxLength == null || maxLength > 0 ),
481481 // Assert the following instead of setting it directly to avoid surprising the user by silently changing the value they set.
482482 assert (
483- ! identical ( textInputAction, TextInputAction .newline) ||
483+ textInputAction != TextInputAction .newline ||
484484 maxLines == 1 ||
485- ! identical ( keyboardType, TextInputType .text) ,
485+ keyboardType != TextInputType .text,
486486 'Use keyboardType TextInputType.multiline when using TextInputAction.newline on a multiline TextField.' ,
487487 ),
488488 keyboardType =
You can’t perform that action at this time.
0 commit comments