addFlagArg method

void addFlagArg(
  1. CmdArg info, {
  2. String? help,
  3. String? valueHelp,
  4. Iterable<String>? allowed,
  5. Map<String, String>? allowedHelp,
  6. bool? defaultsTo = false,
  7. void callback(
    1. bool
    )?,
  8. bool hide = false,
})

Implementation

void addFlagArg(CmdArg info,
        {String? help,
        String? valueHelp,
        Iterable<String>? allowed,
        Map<String, String>? allowedHelp,
        bool? defaultsTo = false,
        // ignore: avoid_positional_boolean_parameters
        void Function(bool)? callback,
        bool hide = false}) =>
    addFlag(
      info.name,
      abbr: info.abbr,
      help: help,
      defaultsTo: defaultsTo,
      callback: callback,
      hide: hide,
    );