File tree Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:df_safer_dart_annotations/df_safer_dart_annotations.dart' ;
2
2
3
+ // ignore: deprecated_member_use_from_same_package
3
4
@mustHandleReturn
4
5
String whatIsYourName () {
5
6
return 'Tony' ;
Original file line number Diff line number Diff line change 7
7
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
8
8
//.title~
9
9
10
- export './annotations/must_handle_return_annotation.dart' ;
10
+ export './annotations/no_futures_allowed_annotation.dart' ;
11
+ export './annotations/must_await_all_futures_annotation.dart' ;
12
+ export './annotations/must_handle_return_annotation.dart' ;
Original file line number Diff line number Diff line change
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 mustAwaitAllFutures = MustAwaitAllFuturesAnnotation ();
14
+
15
+ /// The class that enables the `@mustAwaitAllFutures` annotation.
16
+ final class MustAwaitAllFuturesAnnotation {
17
+ const MustAwaitAllFuturesAnnotation ();
18
+ }
Original file line number Diff line number Diff line change 41
41
/// safeDivide(10, 0);
42
42
/// }
43
43
/// ```
44
+ @Deprecated ('Use @useResult instead.' )
44
45
const mustHandleReturn = MustHandleReturnAnnotation ();
45
46
46
47
/// The class that enables the `@mustHandleReturn` annotation.
48
+ @Deprecated ('Use @useResult instead.' )
47
49
final class MustHandleReturnAnnotation {
48
50
const MustHandleReturnAnnotation ();
49
51
}
Original file line number Diff line number Diff line change
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 noFuturesAllowed = NoFuturesAllowedAnnotation ();
14
+
15
+ /// The class that enables the `@noFuturesAllowed` annotation.
16
+ final class NoFuturesAllowedAnnotation {
17
+ const NoFuturesAllowedAnnotation ();
18
+ }
You can’t perform that action at this time.
0 commit comments