PlatformMessageCallback typedef

  1. @Deprecated('Migrate to ChannelBuffers.setListener instead. ' 'This feature was deprecated after v3.11.0-20.0.pre.')
PlatformMessageCallback = void Function(String name, ByteData? data, PlatformMessageResponseCallback? callback)

Deprecated. Migrate to ChannelBuffers.setListener instead.

Signature for PlatformDispatcher.onPlatformMessage.

Implementation

@Deprecated(
  'Migrate to ChannelBuffers.setListener instead. '
  'This feature was deprecated after v3.11.0-20.0.pre.',
)
typedef PlatformMessageCallback = void Function(String name, ByteData? data, PlatformMessageResponseCallback? callback);