SeedListDiffChange class
Model that displays changes between 2 versions of SeedList. This changes calculates in NekotonRepository and put all related data here. If you see this changes, then it's already appeared and you cannot affect for this action.
You also cannot call any action for instances of this diff.
!!! There is no hierarchy between SeedBase, SeedKeyBase and KeyAccountBase. This is just a pure data-copy of original models.
!!! This is different only between 2 states, there is no long-time tracking.
- Annotations
Constructors
-
SeedListDiffChange.new({required List<
KeyAccountBase> deletedAccounts, required List<KeyAccountBase> addedAccounts, required List<SeedBase> deletedSeeds, required List<SeedBase> addedSeeds, required List<SeedKeyBase> deletedKeys, required List<SeedKeyBase> addedKeys}) -
const
- SeedListDiffChange.fromAccount({required KeyAccount account, required bool isDeleted})
-
Build diff changes from key account (if only account was added or deleted)
factory
- SeedListDiffChange.fromKey({required SeedKey key, required bool isDeleted})
-
Build diff changes from seed key (if whole key was added or deleted)
factory
- SeedListDiffChange.fromSeed({required Seed seed, required bool isDeleted})
-
Build diff changes from seed (if whole seed was added or deleted)
factory
Properties
-
addedAccounts
→ List<
KeyAccountBase> -
final
-
addedKeys
→ List<
SeedKeyBase> -
final
-
addedSeeds
→ List<
SeedBase> -
final
-
deletedAccounts
→ List<
KeyAccountBase> -
Added and deleted accounts.
KeyAccountBase is KeyAccount but without any actions.
Account may have difference in 3 ways:
final
-
deletedKeys
→ List<
SeedKeyBase> -
Added and deleted public keys.
SeedKeyBase is SeedKey (even master key=seed)
Key may have difference in 2 ways:
final
-
deletedSeeds
→ List<
SeedBase> -
Added and deleted seeds.
SeedBase is just Seed where publicKey=masterKey and nothing more.
Seed have have difference only in 1 way:
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
expand(
SeedListDiffChange other) → SeedListDiffChange -
Expand this diff by adding unique elements from
other
. -
expandList(
Iterable< SeedListDiffChange> others) → SeedListDiffChange -
Expand this diff by adding all unique elements from
others
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- empty → const SeedListDiffChange
- Empty state, that could be used as initial state or start value during