inject.dart

Compile-time dependency injection for Dart and Flutter

Github星跟踪图

package:inject

Build Status

Compile-time dependency injection for Dart and Flutter, similar to Dagger.

NOTE: This is not an official Google or Dart team project.

Example code TBD.

Getting Started

TBD.

FAQ

Why is the issue tracker disabled?

This library is currently offered as-is (developer preview) as it is
open-sourced from an internal repository inside Google. As such we are not able
to act on bugs or feature requests at this time.

What do you mean by compile-time?

All dependency injection is analyzed, configured, and generated at compile-time
as part of a build process, and does not rely on any runtime setup or
configuration (such as reflection with dart:mirrors). This provides the best
experience in terms of code-size and performance (it's nearly identical to hand
written code) and allows us to provide compile-time errors and warnings instead
of relying on runtime.

Can I use this with Flutter?

Yes, package:inject is framework and platform agnostic, and works perfectly
well with Flutter or any other framework. We'll be releasing more
documentation and samples of using this package with flutter in the future.

Can I use this with AngularDart?

While technically, yes (package:inject is framework and platform agnostic),
the existing dependency injection framework in AngularDart is better suited for
the idioms of that framework. We welcome experimentation and new ideas, though!

Can I use this with server-side Dart?

Yes, package:inject is framework and platform agnostic, and works perfectly
well with any server-side Dart framework. You may want to consult your specific
framework though - they might already have a preferred dependency injection
pattern.

主要指标

概览
名称与所有者google/inject.dart
主编程语言Dart
编程语言Dart (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2018-03-13 16:04:28
推送于2020-10-14 21:56:08
最后一次提交2019-05-16 09:25:34
发布数0
用户参与
星数869
关注者数55
派生数199
提交数12
已启用问题?
问题数0
打开的问题数0
拉请求数9
打开的拉请求数7
关闭的拉请求数11
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?