I'm using Dart's analyzer API, which allows me to introspect Dart code.
Here is some example code:
void soIntense(anything, {bool flag: true, int value}) { }
Notice how the flag
parameter has a default value of true
.
How can I get the default value, assuming I have an instance of ParameterElement
?