closeLater method
Implementation
@override
void closeLater() {
if (mounted) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
widget.onClose?.call();
}
});
}
}
@override
void closeLater() {
if (mounted) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
widget.onClose?.call();
}
});
}
}