addAsync method

Future<void> addAsync({
  1. required String type,
  2. DefaultInputType? params,
  3. int? index,
  4. 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);
}