Due to the limitations of the simulation. The Lion battery and the charger voltage source (5v) are simplified to the voltage difference between them.
As the battery charges up. The viltage difference decreased. it charges tge battery at constant current until it reached 0.8v (battery 4.2v).