Worlds class
Worlds: several people on your real server, set up by a script.
A world is a Dart file whose main calls World.run, from
package:flutterware/world.dart, in the package that can start the server
and seed it: for a Dart server, the server's own package. Each is declared
here, by WorldScript, the way Run's entry points are — a project has a
few worlds, each named on purpose, so nothing is scanned for:
fw.use(Worlds(packages: [
.new(server, worlds: [
WorldScript('tool/worlds/pickup_order.dart', name: 'Pickup order'),
]),
]));
Opening one runs it in its package; the people it declares get their apps, each launched from one of Run's entry points.
Constructors
-
Worlds({List<
WorldsPackage> packages = const [], String? label})
Properties
-
config
→ Map<
String, Object?> -
Per-instance configuration, handed to the GUI-side implementation. Must be
JSON-encodable — it crosses a process boundary.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable and globally unique —
flutterware.scenarios,acme.deploy. The GUI resolves its native implementation by this string.finalinherited - label → String
-
What the sidebar row says. Defaults to the last dotted segment of id.
finalinherited
-
packages
→ List<
WorldsPackage> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited