sendResult method Null safety

void sendResult(
  1. {dynamic result}

Triggers a Notification with given result, without changing panel state.

The result can be anything except null.

Useful in cases like, return some value back to the parent when user taps some item inside panel.


void sendResult({dynamic result}) {
  if (result != null && controlling)
    SlidingPanelResult(result: result).dispatch(panel!.context);