showIfRequired method
Shows the consent form only if it is required and the user has not responded previously. If the consent status is required, the SDK loads a form and immediately presents it.
The Future will complete only after the dialog is dismissed,
returning the result status as an int.
Ensure you await the result to handle the outcome properly.
Implementation
Future<int> showIfRequired() {
return casInternalBridge.showConsentFlow(this, false);
}