moduleById method

PixaRuntimePluginModuleSnapshot? moduleById(
  1. String moduleId
)

Returns the runtime module with moduleId, when registered.

Implementation

PixaRuntimePluginModuleSnapshot? moduleById(String moduleId) {
  for (final PixaRuntimePluginModuleSnapshot module in moduleSnapshots) {
    if (module.moduleId == moduleId) {
      return module;
    }
  }
  return null;
}