protoRecordFw method

Future<Fw<M>> protoRecordFw({
  1. required int id,
  2. required DspReg disposers,
})

Implementation

Future<Fw<M>> protoRecordFw({
  required int id,
  required DspReg disposers,
}) async {
  final record = createRecord();
  return this.collection.recordFw(
        id: id,
        bidi: BiDi(
          forward: (record) => record.proto$.value,
          backward: (message) => createRecord()..proto$.value = message,
        ),
        defaultValue: record.createProto$()..freeze(),
        disposers: disposers,
      );
}