commitRoster abstract method

Future<void> commitRoster(
  1. String? version,
  2. List<String> removed,
  3. List<XmppRosterItem> modified,
  4. List<XmppRosterItem> added
)

Overrideable function Commits the roster data to persistent storage.

version is the roster version string. If none was provided, then this value is null.

removed is a (possibly empty) list of bare JIDs that are removed from the roster.

modified is a (possibly empty) list of XmppRosterItems that are modified. Correlation with the cache is done using its jid attribute.

added is a (possibly empty) list of XmppRosterItems that are added by the roster push or roster fetch request.

Implementation

Future<void> commitRoster(
  String? version,
  List<String> removed,
  List<XmppRosterItem> modified,
  List<XmppRosterItem> added,
);