showRateDialogIfMeetsConditions method

Future<bool> showRateDialogIfMeetsConditions()

Show review dialog if all conditions are met

Implementation

Future<bool> showRateDialogIfMeetsConditions() async {
  bool shouldShow = await shouldShowRateDialog();
  if (shouldShow) {
    _log('All conditions met, showing review dialog in $_minSecondsBeforeShowDialog seconds');
    Future.delayed(Duration(seconds: _minSecondsBeforeShowDialog), () {
      _showDialog();
    });
  } else {
    _log('Conditions not met for showing review dialog');
  }
  return shouldShow;
}