onRestore method

void onRestore()

Implementation

void onRestore() async {
  if (onRestoreCallback != null) {
    onRestoreCallback!();
  } else {
    await Glassfy.restorePurchases();
    onClose(null, null);
  }
}