getWithParamsAsync<KInstance extends BaseKoreInstance, InputState> method
Return instance for given type
Also calls BaseKoreInstance.initialize for this instance
index - index for this instance
scope - string scope to get instance from
withoutConnections - flag indicating that instance dependencies won`t be connected
params - params for this instance
Implementation
Future<KInstance>
getWithParamsAsync<KInstance extends BaseKoreInstance, InputState>({
InputState? params,
int? index,
String scope = BaseScopes.global,
bool withoutConnections = false,
}) {
final runtimeType = KInstance.toString();
return getInstanceFromCacheAsync<KInstance, InputState>(
runtimeType,
params: params,
index: index,
scopeId: scope,
withoutConnections: withoutConnections,
);
}