getStatusBarNotificationConfig static method

Future<NIMStatusBarNotificationConfig?> getStatusBarNotificationConfig()

Implementation

static Future<NIMStatusBarNotificationConfig?>
    getStatusBarNotificationConfig() async {
  String json = await PreferenceUtils.getString(statusConfig, '');
  if (json.isEmpty) {
    return null;
  }
  Map<String, dynamic> map = jsonDecode(json);
  NIMStatusBarNotificationConfig config =
      NIMStatusBarNotificationConfig.fromMap(map);
  return config;
}