FakeWorld constructor

FakeWorld({
  1. DateTime now()?,
})

Creates an empty world on now (UTC; default the system time).

Implementation

FakeWorld({DateTime Function()? now})
  : now = now ?? (() => DateTime.now().toUtc()) {
  instanceId = nextId();
  localProviderId = nextId();
  syncEpoch = nextId();
}