DrainChannelCallback typedef
- @Deprecated('Migrate to ChannelCallback instead. ' 'This feature was deprecated after v3.11.0-20.0.pre.')
Deprecated. Migrate to ChannelCallback instead.
Signature for ChannelBuffers.drain's callback
argument.
The first argument is the data sent by the plugin.
The second argument is a closure that, when called, will send messages back to the plugin.
Implementation
@Deprecated(
'Migrate to ChannelCallback instead. '
'This feature was deprecated after v3.11.0-20.0.pre.',
)
typedef DrainChannelCallback = Future<void> Function(ByteData? data, PlatformMessageResponseCallback callback);