WorldSeed class final
The standard world of the scenarios.
- Alex and Sam: people with local accounts (password and TOTP below); Alex owns the instance.
- Robin: an agent.
- Space "Team" with the channels
general(Alextrigger, Samwrite, Robinwrite),support(Alex and Samwrite) andprivate(only Sam, so Alex's catch-up skips its events and getscursorframes). - Threads: "Release notes" in
general, "Printer" insupport, "Budget" inprivate.
Example:
final server = await FakeServer.start();
final w = WorldSeed.standard(server.world);
await auth.login.loginWithPassword(
loginName: WorldSeed.alexLogin,
password: WorldSeed.password,
totpCode: WorldSeed.totp,
);
Properties
- alex ↔ FakePerson
-
Alex, the person of the client under test.
latefinal
- budget ↔ String
-
The thread "Budget" in
private.latefinal - general ↔ String
-
The channel
general.latefinal - hashCode → int
-
The hash code for this object.
no setterinherited
- printer ↔ String
-
The thread "Printer" in
support.latefinal - private ↔ String
-
The channel
private, which Alex does not see.latefinal - releaseNotes ↔ String
-
The thread "Release notes" in
general.latefinal - robin ↔ FakePerson
-
Robin, an agent.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sam ↔ FakePerson
-
Sam, another person.
latefinal
- space ↔ String
-
The space "Team".
latefinal
- support ↔ String
-
The channel
support.latefinal - world → FakeWorld
-
The world.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
FakePerson author, String threadId, String text) → JsonMap -
Posts
textasauthorintothreadIdthrough the write path of the world (as if the author's client sent it) and returns the stored message. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited