additionalHelpLines property
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 = [];
if (mustBeOneOf != null) {
var oneOfList = mustBeOneOf!.map((v) => v.toString()).join(', ');
result.add('must be one of $oneOfList');
}
return result;
}