Skip to content

Commit 28aaa1e

Browse files
authored
Fix deprecation doc comment (#103776)
Point users of boolArgDeprecated to boolArg rather than to boolArgDeprecated in order to avoid losing users to infinite loops or stack overflows depending on their implementation.
1 parent a866f3a commit 28aaa1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter_tools/lib/src/runner/flutter_command.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ abstract class FlutterCommand extends Command<void> {
15191519
ApplicationPackageFactory? applicationPackages;
15201520

15211521
/// Gets the parsed command-line option named [name] as a `bool`.
1522-
/// This has been deprecated, use [boolArgDeprecated] instead.
1522+
/// This has been deprecated, use [boolArg] instead.
15231523
bool boolArgDeprecated(String name) => argResults?[name] as bool? ?? false;
15241524

15251525
/// Gets the parsed command-line option named [name] as a `bool?`.

0 commit comments

Comments
 (0)