reason property

String reason
final

A human-readable explanation of the reason why the annotated parameter is required. For example, the annotation might look like:

ButtonWidget({
    Function onHover,
    @Required('Buttons must do something when pressed')
    Function onPressed,
    ...
}) ...

Implementation

final String reason