getStatusBarNotificationConfig static method
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;
}