Injector constructor
Creates an Injector from it's bindings.
Implementation
factory Injector(
{required BindFunc bindFunc, String? name, Injector? parent}) {
final b = parent?.child() ?? Injector.builder();
if (name != null) b.setName(name);
bindFunc(b);
return b.build();
}