getAddress method
get address key from privateKey
Implementation
ZilAddress? getAddress(String? privateKey) {
if (privateKey != null && Account.isPrivateKey.hasMatch(privateKey)) {
return ZilAddress.fromPrivateKey(privateKey);
} else {
return null;
}
}