current property

KeyPairData get current

Implementation

KeyPairData get current {
  final list = allAccounts;
  if (list.length > 0) {
    final i = list.indexWhere((e) => e.pubKey == store.currentPubKey);
    return i >= 0 ? list[i] : KeyPairData();
  }
  return KeyPairData();
}