onFrameDataChanged property Null safety

VoidCallback? onFrameDataChanged

A callback that is invoked when the window updates the FrameData.

Implementation

VoidCallback? get onFrameDataChanged => _onFrameDataChanged;
void onFrameDataChanged=(VoidCallback? callback)

Implementation

set onFrameDataChanged(VoidCallback? callback) {
  _onFrameDataChanged = callback;
  _onFrameDataChangedZone = Zone.current;
}