put method

T put(
  1. T controller, {
  2. bool isPermanent = false,
})

Register a controller instance

Implementation

T put(T controller, {bool isPermanent = false}) {
  if (scope != null) {
    return scope!.put<T>(
      controller,
      tag: tag,
      isPermanent: isPermanent,
    );
  } else {
    return Zen.put<T>(controller, tag: tag, isPermanent: isPermanent);
  }
}