open static method

Future open(
  1. IContext? context,
  2. List? components
)

Opens multiple components.

To be opened components must implement IOpenable interface. If they don't the call to this method has no effect.

  • context (optional) a context to trace execution through call chain.
  • components the list of components that are to be closed. Return Future that returns error or null no errors occured.

See openOne See IOpenable

Implementation

static Future open(IContext? context, List? components) async {
  if (components == null) return true;

  for (var component in components) {
    if (component is IOpenable) await component.open(context);
  }
}