bind<T> method

Component bind<T>(
  1. T dependency
)

Implementation

Component bind<T>(T dependency) {
  final module = moduleOf(
      (registrar) => registrar.singleton<T>((resolver) => dependency));
  return componentOf(parent: this, import: [module]);
}