compareTo method

  1. @override
int compareTo(
  1. WalletAction? other
)
override

Compares this WalletAction to other, based on their timestamps.

Returns:

Implementation

@override
int compareTo(WalletAction? other) {
  if (other == null) return 1;
  return timestamp.compareTo(other.timestamp);
}