text method
Implementation
String text({bool isPlural = false}) {
switch (this) {
case ApiChangeTarget.property:
return isPlural ? 'Properties' : 'Property';
case ApiChangeTarget.method:
return isPlural ? 'Methods' : 'Method';
case ApiChangeTarget.function:
return isPlural ? 'Functions' : 'Function';
case ApiChangeTarget.constructor:
return isPlural ? 'Constructors' : 'Constructor';
case ApiChangeTarget.parameter:
return isPlural ? 'Params' : 'Param';
case ApiChangeTarget.component:
return isPlural ? 'Components' : 'Component';
}
}