SenderTable class final
Which kinds each user may send: a line per user, the user's name or id
and then the kinds, separated by spaces. Blank lines and lines starting
with # are skipped.
A line attaching: <kinds> names the kinds that attach: a chain started
by one of them names its parent entry on its first body line and joins
that entry's journey path (see JournalService). No user name holds a
:, so the line cannot be read as a user's.
Properties
Methods
-
allows(
int uid, Kind kind) → bool -
Whether the user
uidmay sendkind. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
attachingIn(
Uint8List bytes) → Set< Kind> -
The attaching kinds of the table
bytes, as astartedentry holds it, read back without looking any user up: what attached when an entry was added is what the table in force then said. Never throws: a kind it cannot read attaches nothing. -
parse(
Uint8List bytes, {int? uidOf(String user) = _uidOf}) → SenderTable -
bytesas a table. Throws a FormatException naming the line when a line has no kinds, a kind is not one Kind.parse takes, an attaching kind is Kind.assigned or Kind.ended, or a user is not oneuidOffinds.uidOfdefaults to a number as itself and a name asid -uprints it.