searchBrokers method

Future<List<UTerminalBrokerResponse>> searchBrokers(
  1. String query
)

Implementation

Future<List<UTerminalBrokerResponse>> searchBrokers(String query) async =>
    ((await UServices.terminal.readBroker(p: UTerminalBrokerReadParams(pageSize: 100, selectorArgs: const UTerminalBrokerSelectorArgs()))).$1?.result ?? <UTerminalBrokerResponse>[])
        .where((UTerminalBrokerResponse x) => _matches(query, x.title, x.code))
        .toList();