getSharedPreferences static method

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

Implementation

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