transform
Transforms the loaded value of a ComponentState using the provided transform function.
Receiver
The ComponentState to apply the transformation
Return
A new ComponentState with the transformed value
Parameters
T
The type of the loaded value
R
The type of the transformed value
transform
The transformation function