notifyParent method
Implementation
bool notifyParent({required bool isOpen}) {
try {
widget.onOpen?.call(isOpen: isOpen);
return true; // Success
} catch (e) {
debugPrint('Error in onOpen callback: $e');
return false; // Failure
}
}