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 (Alex trigger, Sam write, Robin write), support (Alex and Sam write) and private (only Sam, so Alex's catch-up skips its events and gets cursor frames).
  • Threads: "Release notes" in general, "Printer" in support, "Budget" in private.

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 text as author into threadId through 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

Static Methods

standard(FakeWorld world) → WorldSeed
Fills world with the standard world and returns the IDs.

Constants

alexLogin → const String
The login name of Alex.
password → const String
The password of both local accounts.
samLogin → const String
The login name of Sam.
totp → const String
The TOTP code the fake accepts for both.