Removes State from UI update list.
Usually called at the end of the widget's lifecycle,
when a StatefulWidget's State is no longer
used/shown and is removed from the widget tree (unmounted).
Adds a service (class object) to the container.
In case the service already exists in the container, this will have no effects.
to force replace the existing service (if any), set forceReplace: true.