Skip to content

Commit 67d5b31

Browse files
committed
+feat: Add UnsafenOrErrorAnnotation and UnsafeAnnotation annotations
1 parent 0ea5700 commit 67d5b31

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Please refer to the [API reference](https://pub.dev/documentation/df_safer_dart_
2222

2323
---
2424

25-
## Contributing and Discussions
25+
## 💬 Contributing and Discussions
2626

2727
This is an open-source project, and we warmly welcome contributions from everyone, regardless of experience level. Whether you're a seasoned developer or just starting out, contributing to this project is a fantastic way to learn, share your knowledge, and make a meaningful impact on the community.
2828

29-
### Ways you can contribute
29+
### ☝️ Ways you can contribute
3030

3131
- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/dev_cetera). Your support helps cover the costs of development and keeps the project growing.
3232
- **Find us on Discord:** Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX.
@@ -39,7 +39,7 @@ This is an open-source project, and we warmly welcome contributions from everyon
3939

4040
No matter how you choose to contribute, your involvement is greatly appreciated and valued!
4141

42-
### We drink a lot of coffee...
42+
### We drink a lot of coffee...
4343

4444
If you're enjoying this package and find it valuable, consider showing your appreciation with a small donation. Every bit helps in supporting future development. You can donate here: https://www.buymeacoffee.com/dev_cetera
4545

@@ -48,3 +48,4 @@ If you're enjoying this package and find it valuable, consider showing your appr
4848
## License
4949

5050
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_safer_dart_annotations/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_safer_dart_annotations/main/LICENSE) for more information.
51+

lib/src/_src.g.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
88
//.title~
99

10-
export './annotations/experimental_annotations.dart';
11-
export './annotations/must_await_all_futures_annotation.dart';
1210
export './annotations/must_be_anonymous_annotation.dart';
13-
export './annotations/must_be_strong_ref_annotation.dart';
14-
export './annotations/must_handle_return_annotation.dart';
1511
export './annotations/no_futures_allowed_annotation.dart';
12+
export './annotations/experimental_annotations.dart';
13+
export './annotations/must_be_strong_ref_annotation.dart';
14+
export './annotations/must_await_all_futures_annotation.dart';
15+
export './annotations/unsafe_annotation.dart';
16+
export './annotations/must_handle_return_annotation.dart';
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//.title
2+
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3+
//
4+
// Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5+
// source code is governed by an MIT-style license described in the LICENSE
6+
// file located in this project's root directory.
7+
//
8+
// See: https://opensource.org/license/mit
9+
//
10+
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
11+
//.title~
12+
13+
const unsafeOrError = UnsafenOrErrorAnnotation();
14+
15+
/// The class that enables the `@unsafeOrError` annotation.
16+
final class UnsafenOrErrorAnnotation {
17+
const UnsafenOrErrorAnnotation();
18+
}
19+
20+
const unsafe = UnsafeAnnotation();
21+
22+
/// The class that enables the `@unsafe` annotation.
23+
final class UnsafeAnnotation {
24+
const UnsafeAnnotation();
25+
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repository: https://github.com/robmllze/df_safer_dart_annotations
1616
funding:
1717
- https://www.buymeacoffee.com/dev_cetera
1818
description: Annotations for the df_safer_dart_lints package.
19-
version: 0.1.4
19+
version: 0.1.5
2020
topics:
2121
- rust
2222
- error-handling

0 commit comments

Comments
 (0)