isOpen static method
- List? components
Checks if all components are opened.
To be checked components must implement IOpenable interface. If they don't the call to this method returns true.
components
a list of components that are to be checked. Returns true if all components are opened and false if at least one component is closed.
Implementation
static bool isOpen(List? components) {
if (components == null) return true;
var result = true;
for (var component in components) {
result = result && Opener.isOpenOne(component);
}
return result;
}