address property

String? get address

Implementation

String? get address {
  if (sessionService.noSession) {
    return null;
  }
  if (sessionService.isCoinbase) {
    return _coinbaseData!.address;
  }
  if (sessionService.isMagic) {
    return _magicData!.address;
  }
  final namespace = namespaces?[CoreConstants.namespace];
  final accounts = namespace?.accounts ?? [];
  if (accounts.isNotEmpty) {
    return NamespaceUtils.getAccount(accounts.first);
  }
  return null;
}