shouldShowRateDialog method
Check if review dialog should be shown based on all conditions
Implementation
Future<bool> shouldShowRateDialog() async {
if (_debugMode) {
_log('Debug mode enabled - bypassing conditions');
return true;
}
bool overLaunchTimes = await _isOverLaunchTimes();
bool overInstallDate = await _isOverInstallDate();
bool overRemindDate = await _isOverRemindDate();
bool validSessionDuration = _isValidSessionDuration();
_log('Condition check:');
_log('- Launch times: $overLaunchTimes (${await _getLaunchTimes()}/$_minLaunchTimes)');
_log('- Install date: $overInstallDate');
_log('- Remind date: $overRemindDate');
_log('- Session duration: $validSessionDuration');
return overLaunchTimes && overInstallDate && overRemindDate && validSessionDuration;
}