PlatformInfo class
Describes the operating system and architecture a node runs on, advertised
to clients during discovery and shown by the :info local command.
- Annotations
-
- @immutable
Constructors
Properties
- agentVersion → String
-
The node agent version string — the OmnyShell build the node reports it is
running (see omnyShellVersion); the Hub reports the sentinel
'hub'.final - arch → String
-
The processor architecture (e.g.
x64,arm64).final - cpuCount → int?
-
The number of logical processors on the node, or
nullwhen not reported.final - hashCode → int
-
The hash code for this object.
no setterinherited
- hostname → String
-
The node's hostname.
final
- os → String
-
The operating system name (e.g.
linux,macos,windows).final - osVersion → String?
-
The operating system's version/build string (e.g. the kernel release and
build on Linux), or
nullwhen the node did not report one (older agents).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- runtimeVersion → String?
-
The Dart runtime the agent runs on (e.g.
3.13.0 (stable)), ornullwhen not reported.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes to a JSON map. The optional fields are omitted when unknown, so the wire shape stays identical for agents that do not report them.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → PlatformInfo - Decodes from a JSON map.