bind static method

void bind(
  1. String key,
  2. Function closure, {
  3. bool shared = false,
})

Bind a service into the container.

Magic.bind('logger', () => Logger());

See MagicApp.bind for more details.

Implementation

static void bind(String key, Function closure, {bool shared = false}) {
  app.bind(key, closure, shared: shared);
}