onSemanticsEnabledChanged property Null safety

  1. @override
VoidCallback? onSemanticsEnabledChanged
override

A callback that is invoked when the value of semanticsEnabled changes.

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

Implementation

@override
ui.VoidCallback? get onSemanticsEnabledChanged => _platformDispatcher.onSemanticsEnabledChanged;
  1. @override
void onSemanticsEnabledChanged=(VoidCallback? callback)
override

Implementation

@override
set onSemanticsEnabledChanged(ui.VoidCallback? callback) {
  _platformDispatcher.onSemanticsEnabledChanged = callback;
}