additionalHelpLines property

  1. @override
List<String> additionalHelpLines
override

Implementation

@override
List<String> get additionalHelpLines {
  // Local type is needed, otherwise result winds up being a
  // List<dynamic> which is incompatible with the return type.
  // Therefore, ignore the suggestion from dartanalyzer
  //
  // ignore: omit_local_variable_types
  List<String> result = [];
  var oneOfList = _validArgs().join(', ');
  result.add('must be one of $oneOfList');
  return result;
}