getParameters method
Set<AttributeParameter>
getParameters(
)
Implementation
Set<AttributeParameter> getParameters() {
final paramSet = <String>{};
final paramTypeMap = <String, String>{};
for (final textNode in quantities.values) {
paramSet.addAll(textNode.params);
paramTypeMap.addAll(textNode.paramTypeMap);
}
paramSet.add(paramName);
paramTypeMap[paramName] = paramType;
if (rich) {
final builderParam = '${paramName}Builder';
paramSet.add(builderParam);
paramTypeMap[builderParam] = 'InlineSpan Function($paramType)';
}
return paramSet.map((param) {
return AttributeParameter(
parameterName: param,
type: paramTypeMap[param] ?? 'Object',
);
}).toSet();
}