addAsync method
Future<void>
addAsync({
- required String type,
- DefaultInputType? params,
- int? index,
- String? scope,
Adds instance in collection
Also calls MvvmInstance.initialize for this isntance
type
- string type of this instance
index
- index for this instance
scope
- string scope to get instance from
params
- params for this instance
Implementation
Future<void> addAsync({
required String type,
DefaultInputType? params,
int? index,
String? scope,
}) {
return addWithParamsAsync<DefaultInputType>(
type: type, params: params, scope: scope);
}