shouldShowConsentDialog static method
Implementation
static Future<ShouldShow> shouldShowConsentDialog() async {
var getShouldShowType =
await _channel.invokeMethod('shouldShowConsentDialog');
ShouldShow shouldShow = ShouldShow.UNKNOWN;
switch (getShouldShowType) {
case 0:
shouldShow = ShouldShow.UNKNOWN;
break;
case 1:
shouldShow = ShouldShow.TRUE;
break;
case 2:
shouldShow = ShouldShow.FALSE;
break;
default:
shouldShow = ShouldShow.UNKNOWN;
break;
}
return shouldShow;
}