Skip to content

Commit ab791d1

Browse files
committed
+feat: Add more annotations
1 parent 18793ef commit ab791d1

File tree

6 files changed

+73
-3
lines changed

6 files changed

+73
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99

1010
- Released @ 6/2025 (UTC)
1111
- Inital release
12-
- feat: Add more annotations

lib/src/_src.g.dart

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

10+
export './annotations/must_be_strict_annotation.dart';
11+
export './annotations/must_be_anonymous_annotation.dart';
1012
export './annotations/no_futures_allowed_annotation.dart';
13+
export './annotations/experimental_annotations.dart';
1114
export './annotations/must_await_all_futures_annotation.dart';
12-
export './annotations/must_handle_return_annotation.dart';
15+
export './annotations/must_handle_return_annotation.dart';
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 experimental1 = ExperimentalAnnotation1();
14+
15+
/// The class that enables the `@experimental1` annotation.
16+
final class ExperimentalAnnotation1 {
17+
const ExperimentalAnnotation1();
18+
}
19+
20+
const experimental2 = ExperimentalAnnotation2();
21+
22+
/// The class that enables the `@experimental2` annotation.
23+
final class ExperimentalAnnotation2 {
24+
const ExperimentalAnnotation2();
25+
}
26+
27+
const experimental3 = ExperimentalAnnotation3();
28+
29+
/// The class that enables the `@experimental3` annotation.
30+
final class ExperimentalAnnotation3 {
31+
const ExperimentalAnnotation3();
32+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 mustBeAnonymousAnnotation = MustBeAnonymousAnnotation();
14+
15+
/// The class that enables the `@mustBeAnonymousAnnotation` annotation.
16+
final class MustBeAnonymousAnnotation {
17+
const MustBeAnonymousAnnotation();
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 mustBeStrictAnnotation = MustBeStrictAnnotation();
14+
15+
/// The class that enables the `@mustBeStrictAnnotation` annotation.
16+
final class MustBeStrictAnnotation {
17+
const MustBeStrictAnnotation();
18+
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
name: df_safer_dart_annotations
1414
description: Annotations for the df_safer_dart_lints package.
15-
version: 0.1.1
15+
version: 0.1.2
1616
homepage: https://dev-cetera.com/
1717
repository: https://github.com/dev-cetera/df_safer_dart_annotations
1818
funding:

0 commit comments

Comments
 (0)