listControllers method
Returns the list of 'Controllers' but you must know their keys.
Implementation
List<StateXController?> listControllers(List<String?>? ids) {
final List<StateXController?> controllers = [];
if (ids != null) {
for (final id in ids) {
if (id != null && id.isNotEmpty) {
for (final controller in _controllerList) {
if (controller.identifier == id) {
controllers.add(controller);
break;
}
}
}
}
}
return controllers;
}