From 35f3e8c318ae7e09db8dd17f70d3f793800bfddf Mon Sep 17 00:00:00 2001 From: RicardoRB Date: Fri, 3 Nov 2023 15:38:39 +0100 Subject: [PATCH] Created inject.dart --- .../dartness_server/lib/src/app/annotation/inject.dart | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 packages/dartness_server/lib/src/app/annotation/inject.dart diff --git a/packages/dartness_server/lib/src/app/annotation/inject.dart b/packages/dartness_server/lib/src/app/annotation/inject.dart new file mode 100644 index 00000000..4cd5b4f6 --- /dev/null +++ b/packages/dartness_server/lib/src/app/annotation/inject.dart @@ -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); +}