没有合适的资源?快使用搜索试试~ 我知道了~
dice:Dart的轻量级依赖注入框架
共24个文件
dart:14个
md:3个
yaml:2个
需积分: 10 0 下载量 103 浏览量
2021-05-10
01:42:04
上传
评论
收藏 21KB ZIP 举报
温馨提示
骰子 Dart的轻量级依赖注入框架。 入门 骰子由两部分组成。 包含您的课程注册的模块。 使用模块将实例注入代码的注入器。 以下示例将帮助您入门: 1.将骰子添加到您的pubspec.yaml中,然后运行pub install dependencies : dice : any 2.创建一些要注入的类和接口 class BillingServiceImpl implements BillingService { CreditProcessor _processor; Receipt chargeOrder ( Order order, CreditCard creditCard) { if ( ! _processor. validate (creditCard)) { throw new ArgumentError ( "payment me
资源推荐
资源详情
资源评论
收起资源包目录
dice-master.zip (24个子文件)
dice-master
pubspec.yaml 368B
AUTHORS 411B
lib
dice.dart 659B
src
injector.dart 14KB
mirror_util.dart 2KB
assert_messages.dart 959B
Registration.dart 2KB
module.dart 3KB
annotations.dart 666B
run_tests.sh 369B
TODO.md 76B
.travis.yml 295B
example
pubspec.yaml 342B
app
lib
_events.dart 709B
_billing.dart 1KB
example.dart 1KB
LICENSE 596B
test
config.dart 662B
tester_module.dart 6KB
dice_test.dart 11KB
dice_vm_only_test.dart 2KB
README.md 6KB
.gitignore 154B
CHANGELOG.md 1KB
共 24 条
- 1
资源评论
洋林
- 粉丝: 28
- 资源: 4575
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功