Transformations class is provided if you want to make changes to the value stored in a
LiveData object before dispatching it to the observers, or if you want to return a different
LiveData instance based on the value of another one.
It is useful when you want to create chain reaction between
LiveData or react to changes in another
Transformations class provides 2 transformations out-of-box:
mapis useful when you want to make changes to the value before dispatching it to the UI.
switchMapis useful when you want to return different
LiveDatabased upon the value of the first one.
In this lesson, we will build a Pokemon app and use transformations to show the selected Pokemon in the