notifyParent method

bool notifyParent({
  1. required bool isOpen,
})

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
  }
}