getSharedPreferences static method

Future<int?> getSharedPreferences(
  1. String key
)

Implementation

static Future<int?> getSharedPreferences(String key) async {
  int? pref =
      await Ads.instance.channelConsent.invokeMethod('getConsentSharedPreferences', {'key': key});
  return pref;
}