standard static method
- FakeWorld world
Fills world with the standard world and returns the IDs.
Implementation
static WorldSeed standard(FakeWorld world) {
final s = WorldSeed._(world);
s.alex = world.addPerson(
handle: 'alex',
displayName: 'Alex',
loginName: alexLogin,
password: password,
totpCode: totp,
isOwner: true,
);
s.sam = world.addPerson(
handle: 'sam',
displayName: 'Sam',
loginName: samLogin,
password: password,
totpCode: totp,
);
s.robin = world.addPerson(
handle: 'robin',
displayName: 'Robin',
kind: 'agent',
);
s.space = world.addSpace('Team');
s.general = world.addChannel(s.space, 'general', {
s.alex.id: 'trigger',
s.sam.id: 'write',
s.robin.id: 'write',
});
s.support = world.addChannel(s.space, 'support', {
s.alex.id: 'write',
s.sam.id: 'write',
});
s.private = world.addChannel(s.space, 'private', {s.sam.id: 'write'});
s.releaseNotes = world.addThread(
s.general,
'Release notes',
createdBy: s.alex.id,
);
s.printer = world.addThread(s.support, 'Printer', createdBy: s.sam.id);
s.budget = world.addThread(s.private, 'Budget', createdBy: s.sam.id);
return s;
}