userAttribute static method

Future userAttribute(
  1. String key
)

Implementation

static Future<dynamic> userAttribute(String key) async {
  dynamic value = await _channel
      .invokeMethod('userAttribute', <String, dynamic>{'key': key});

  try {
    value = DateTime.parse(value);
  } catch (FormatException) {
    //do nothing it is not a date
  }

  return value;
}