openOne static method

Future openOne(
  1. IContext? context,
  2. dynamic component
)

Opens specific component.

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.
  • component the component that is to be opened. Return Future that returns error or null no errors occured.

See IOpenable

Implementation

static Future openOne(IContext? context, component) async {
  if (component is IOpenable) await component.open(context);
}