handlePlatformMessage method Null safety

  1. @Deprecated('Use handleFrameworkMessage instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.')
  2. @override
Future<void> handlePlatformMessage(
  1. String channel,
  2. ByteData? data,
  3. PlatformMessageResponseCallback? callback
)
Deprecated('Use handleFrameworkMessage instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.')">@Deprecated('Use handleFrameworkMessage instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.')override

Receives a platform message from the framework.

This method has been replaced with the more clearly-named handleFrameworkMessage.

Implementation

@Deprecated(
  'Use handleFrameworkMessage instead. '
  'This feature was deprecated after v1.24.0-7.0.pre.'
)
@override
Future<void> handlePlatformMessage(
  String channel,
  ByteData? data,
  ui.PlatformMessageResponseCallback? callback,
) => handleFrameworkMessage(channel, data, callback);