Spec class

Constructors

Spec({String? arch, int? cpus, List<GPU> gpus = const [], int? memory, String? os})
Returns a new Spec instance.

Properties

arch ↔ String?
amd64 | arm64 | ...
getter/setter pair
cpus ↔ int?
logical cores
getter/setter pair
gpus ↔ List<GPU>
GPUs is every accelerator the machine advertises, one entry each, capped at 32 on write. Empty means the probe found none — and that is the answer a Need is checked against, so a machine with no entry here clears no accelerator floor. The list is not vendor-filtered: what satisfies a job is counts and VRAM, never a brand (see Need).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
memory ↔ int?
total RAM, bytes
getter/setter pair
os ↔ String?
linux | darwin | windows
getter/setter pair
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, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Spec?
Returns a new Spec instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Spec>
mapFromJson(dynamic json) → Map<String, Spec>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Spec>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.