searchAgents method

List<Agent> searchAgents(
  1. String query
)

Implementation

List<Agent> searchAgents(String query) {
  return _agents.where((agent) =>
  agent.name?.toLowerCase().contains(query.toLowerCase())??false).toList();
}