add method
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
void add({
required String type,
DefaultInputType? params,
int? index,
String? scope,
}) {
return addWithParams<DefaultInputType>(
type: type, params: params, scope: scope);
}