field<F> method
Implementation
Fw<F> field<F>({
required F Function(T message) get,
required T Function(T message, F value) set,
}) {
return Fw.fromFr(
fr: map(get),
set: (value) => update(
(message) => set(message, value),
),
);
}