blobRecordFw<T> method
Future<Fw<T>>
blobRecordFw<
T>({ - required int id,
- required R createRecord(),
- required BiDi<List<int>, T> bidi,
- required T defaultValue,
- required DspReg disposers,
})
Implementation
Future<Fw<T>> blobRecordFw<T>({
required int id,
required R Function() createRecord,
required BiDi<List<int>, T> bidi,
required T defaultValue,
required DspReg disposers,
}) async {
return recordFw(
id: id,
bidi: BiDi(
forward: (record) => bidi.forward(record.blob),
backward: (message) => createRecord()..blob = bidi.backward(message),
),
defaultValue: defaultValue,
disposers: disposers,
);
}