userAttributes static method

Future<Map> userAttributes()

Implementation

static Future<Map<dynamic, dynamic>> userAttributes() async {
  Map<dynamic, dynamic> attributes =
      await _channel.invokeMethod('userAttributes');

  return attributes.map((key, value) {
    dynamic attributeValue = value;
    try {
      attributeValue = DateTime.parse(value);
    } catch (FormatException) {
      //do nothing it is not a date
    }
    return MapEntry(key, attributeValue);
  });
}