map method

S map(
  1. T f(
    1. T
    )
)

Returns a copy of the subject this lens is focused on with the field of this lens transformed by f

Implementation

S map(T Function(T) f) => update(f(value));