lookup method
The configured provider with id, or null if none matches.
The built-in legacy provider is not in providers; the SDK supplies it as a fallback for legacyCryptoProviderId, so a null result for that id still resolves.
Implementation
CryptoProvider? lookup(String id) {
for (final provider in providers) {
if (provider.id == id) return provider;
}
return null;
}