mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
refactor(structure): move benchmarks, scenarios, adapters, utils to dedicated folders; update imports/project layout
This commit is contained in:
12
benchmark_cherrypick/lib/scenarios/named_module.dart
Normal file
12
benchmark_cherrypick/lib/scenarios/named_module.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'package:cherrypick/cherrypick.dart';
|
||||
|
||||
class Impl1 {}
|
||||
class Impl2 {}
|
||||
|
||||
class NamedModule extends Module {
|
||||
@override
|
||||
void builder(Scope currentScope) {
|
||||
bind<Object>().toProvide(() => Impl1()).withName('impl1');
|
||||
bind<Object>().toProvide(() => Impl2()).withName('impl2');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user