mirror of
https://github.com/flutter/flutter.git
synced 2026-02-13 06:13:10 +08:00
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.
This commit is contained in:
parent
a866f3a965
commit
28aaa1e99e
@ -1519,7 +1519,7 @@ abstract class FlutterCommand extends Command<void> {
|
||||
ApplicationPackageFactory? applicationPackages;
|
||||
|
||||
/// Gets the parsed command-line option named [name] as a `bool`.
|
||||
/// This has been deprecated, use [boolArgDeprecated] instead.
|
||||
/// This has been deprecated, use [boolArg] instead.
|
||||
bool boolArgDeprecated(String name) => argResults?[name] as bool? ?? false;
|
||||
|
||||
/// Gets the parsed command-line option named [name] as a `bool?`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user