getConsents method

Future getConsents()

Implementation

Future<dynamic> getConsents() async {
  Map<String, dynamic> result = {};
  try {
    result = await Consent.consents;
    return result;
  } catch (e) {
    throw StateError('Error getting Adobe Analytics Consents: $e');
  }
}