getDelegationStatusForWallet method
Gets the delegation status for a specific wallet.
walletId is the unique identifier of the wallet.
Returns the WalletDelegatedStatus for the wallet, or null if not found
or if delegation is not enabled.
Implementation
WalletDelegatedStatus? getDelegationStatusForWallet(String walletId) {
final statuses = delegatedAccessState.walletsDelegatedStatus;
try {
return statuses.firstWhere((status) => status.id == walletId);
} catch (_) {
return null;
}
}