isClosingConfirmationEnabled property
True, if the confirmation dialog is enabled while the user is trying to close the Mini App. False, if the confirmation dialog is disabled.
Implementation
@override
bool get isClosingConfirmationEnabled => Telegram.WebApp.isClosingConfirmationEnabled;