switchesInfo property
List<SwitchInfo>
get
switchesInfo
Computed list of SwitchInfo objects with metadata
Implementation
List<SwitchInfo> get switchesInfo {
return switches.entries.map((entry) {
return SwitchInfo(
name: entry.key,
command: entry.value,
flags: entry.value.flags,
description: entry.value.description,
);
}).toList();
}