takeGroupsPrepended method
When older messages were just added by appendMessages to a normal (not reversed) list,
the number of groups added in front, so the visible groups can be kept in place;
otherwise null. Returns the value once.
Called by Chat during layout.
Implementation
int? takeGroupsPrepended() {
final value = _groupsPrepended;
_groupsPrepended = null;
return value;
}