init static method

Future init({
  1. void onShow() = openPlatformRateDialog,
  2. bool canShow() = _defaultRuleToShow,
})

Implementation

static Future init({
  void Function() onShow = openPlatformRateDialog,
  bool Function() canShow = _defaultRuleToShow,
}) async {
  _onShow = onShow;
  _canShow = canShow;
  await _Data.init();
}