protoField<F> method

Fw<F> protoField<F>({
  1. required F get(
    1. M message
    ),
  2. required void set(
    1. M message,
    2. F value
    ),
})

Implementation

Fw<F> protoField<F>({
  required F Function(M message) get,
  required void Function(M message, F value) set,
}) {
  return field(
    get: get,
    set: (message, value) => message.rebuild(
      (b) {
        set(b, value);
      },
    ),
  );
}