Resolver function — returns the registered instance for key or null. Real DI containers wire this; tests can pass a stub.
key
final Object? Function(String key)? resolve;