registerHeightResetCallback static method
Registers a callback function to reset modal height measurements
This method is used internally by the modal system to ensure that height measurements are properly reset between modal displays, especially when consecutive modals have different content heights.
Parameters:
callback: A function to call when height needs to be reset
Implementation
static void registerHeightResetCallback(VoidCallback callback) {
_resetHeightCallback = callback;
}