setArguments method

void setArguments(
  1. A args, {
  2. String? tag,
})

save arguments into the provider Ref

Implementation

void setArguments(
  A args, {
  String? tag,
}) {
  final key = getKey(tag);
  final element = containerElements.putIfAbsent(
    key,
    () => Element<E>(
      ref: Ref<A>(tag: tag),
    ),
  );
  element.ref.setArguments(args);
}