sendResult method Null safety
- {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.
Implementation
void sendResult({dynamic result}) {
if (result != null && controlling)
SlidingPanelResult(result: result).dispatch(panel!.context);
}