Skip to content

Commit

Permalink
Created inject.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoRB committed Nov 3, 2023
1 parent 077dc4f commit 35f3e8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/dartness_server/lib/src/app/annotation/inject.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// Annotation that marks a constructor parameter as a target for
/// dependence injection
abstract class Inject {
/// Lookup key for the provider to be injected
final String? name;

const Inject(this.name);
}

0 comments on commit 35f3e8c

Please sign in to comment.