df_safer_dart_annotations 0.3.1
df_safer_dart_annotations: ^0.3.1 copied to clipboard
Annotations for the df_safer_dart_lints package.
Changelog #
0.3.1 #
- feat: add
@sendable/SendableAnnotationand@sendableOrError/SendableOrErrorAnnotationmarkers for parameters that must be sendable throughSendPort(top-level functions and static method references only). The error variant escalates the matchingdf_safer_dart_lintsrule from warning to error severity.
0.3.0 #
- fix:
mustHandleReturnOrErrornow refers to the dedicatedMustHandleReturnOrErrorAnnotationclass (it was previously aliased toMustHandleReturnAnnotation). Thedf_safer_dart_lintsplugin matches annotations by class name, so the warning and error variants used to be indistinguishable —@mustHandleReturnOrErrorcallsites were being picked up by the warning-level rule instead of the error-level one. Both variants now fire under their intended severity.