onKeyData property

  1. @Deprecated('Use WidgetTester.platformDispatcher.onKeyData instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.9.0-0.1.pre.')
  2. @override
KeyDataCallback? onKeyData
override

A callback that is invoked when key data is available.

The framework invokes this callback in the same zone in which the callback was set.

Implementation

@Deprecated(
  'Use WidgetTester.platformDispatcher.onKeyData instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.9.0-0.1.pre.'
)
@override
KeyDataCallback? get onKeyData => platformDispatcher.onKeyData;
  1. @Deprecated('Use WidgetTester.platformDispatcher.onKeyData instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.9.0-0.1.pre.')
  2. @override
void onKeyData=(KeyDataCallback? value)
override

Implementation

@Deprecated(
  'Use WidgetTester.platformDispatcher.onKeyData instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.9.0-0.1.pre.'
)
@override
set onKeyData(KeyDataCallback? value) {
  platformDispatcher.onKeyData = value;
}