getAsync<MInstance extends MvvmInstance> method
Future<MInstance>
getAsync<MInstance extends MvvmInstance>({
- DefaultInputType? params,
- int? index,
- String scope = BaseScopes.global,
- bool withoutConnections = false,
Returns instance for given type
Also calls MvvmInstance.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<MInstance> getAsync<MInstance extends MvvmInstance>({
DefaultInputType? params,
int? index,
String scope = BaseScopes.global,
bool withoutConnections = false,
}) {
return getWithParamsAsync<MInstance, DefaultInputType?>(
params: params,
index: index,
scope: scope,
withoutConnections: withoutConnections,
);
}