mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
renamed package
This commit is contained in:
@@ -65,7 +65,7 @@ Example:
|
||||
|
||||
```dart
|
||||
// open main scope
|
||||
final rootScope = DartDi.openRootScope();
|
||||
final rootScope = Cherrypick.openRootScope();
|
||||
|
||||
// initializing scope with a custom module
|
||||
rootScope.installModules([AppModule()]);
|
||||
@@ -76,7 +76,7 @@ Example:
|
||||
final str = rootScope.tryResolve<String>();
|
||||
|
||||
// close main scope
|
||||
DartDi.closeRootScope();
|
||||
Cherrypick.closeRootScope();
|
||||
```
|
||||
|
||||
## Example app
|
||||
@@ -85,8 +85,8 @@ Example:
|
||||
```dart
|
||||
import 'dart:async';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:dart_di/experimental/scope.dart';
|
||||
import 'package:dart_di/experimental/module.dart';
|
||||
import 'package:cherrypick/scope.dart';
|
||||
import 'package:cherrypick/module.dart';
|
||||
|
||||
class AppModule extends Module {
|
||||
@override
|
||||
|
||||
@@ -65,7 +65,7 @@ Scope - это контейнер, который хранит все дерев
|
||||
|
||||
```dart
|
||||
// открыть главный scope
|
||||
final rootScope = DartDi.openRootScope();
|
||||
final rootScope = Cherrypick.openRootScope();
|
||||
|
||||
// инициализация scope пользовательским модулем
|
||||
rootScope.installModules([AppModule()]);
|
||||
@@ -76,7 +76,7 @@ Scope - это контейнер, который хранит все дерев
|
||||
final str = rootScope.tryResolve<String>();
|
||||
|
||||
// закрыть главный scope
|
||||
DartDi.closeRootScope();
|
||||
Cherrypick.closeRootScope();
|
||||
```
|
||||
|
||||
## Пример приложения
|
||||
@@ -85,8 +85,8 @@ Scope - это контейнер, который хранит все дерев
|
||||
```dart
|
||||
import 'dart:async';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:dart_di/experimental/scope.dart';
|
||||
import 'package:dart_di/experimental/module.dart';
|
||||
import 'package:cherrypick/scope.dart';
|
||||
import 'package:cherrypick/module.dart';
|
||||
|
||||
class AppModule extends Module {
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user