string_literal_finder_annotations 1.0.0 string_literal_finder_annotations: ^1.0.0 copied to clipboard
Annotations for methods and strings to mark them as non-translatable.
See string_literal_finder for details.
import 'package:string_literal_finder_annotations/string_literal_finder_annotations.dart';
void myFunc(@NonNls String nonTranslatable) {}
main() {
// ignored, because of @NonNls annotation
myFunc('Lorem ipsum');
// ignored, because wrapped in `nonNls`
final map = nonNls({
'lorem': 'ipsum',
});
}