selectHost< T extends Host> method
Returns preferred host of given type
from hosts
list.
Overload this function if you want to implement custom host preference.
By default returns first host in a list.
Implementation
@visibleForOverriding
T selectHost<T extends Host>(HostType type, List<T> hosts) =>
hosts.first;