FocusedLens<S, T> class

A lenses that has been focused on (bound to) a specific instance of the subject.

Create an instance by using Lens.of on a subject.

Annotations
  • @immutable

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value to lens is focused on
no setter

Methods

map(T f(T)) → S
Returns a copy of the subject this lens is focused on with the field of this lens transformed by f
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
then<Q>(Lens<T, Q> lens) FocusedLens<S, Q>
Chain two lenses together.
thenWithContext<Q>(Lens<T, Q> lensMaker(S context)) FocusedLens<S, Q>
Chain two lenses together.
toString() String
A string representation of this object.
inherited
update(T t) → S
Returns a copy of the subject this lens is focused on with the field of this lens change to t

Operators

operator ==(Object other) bool
The equality operator.
inherited