SyncStatus class

SyncStatus is used to provide additional context about an implementation's sync status. It is often used to indicate that an implementation is healthy when it cannot be queried until some sync phase occurs. If an implementation is immediately queryable, this model is often not populated.

Annotations
  • @immutable

Constructors

SyncStatus(int currentIndex, int? targetIndex, String? stage)
const
SyncStatus.fromJson(Map<String, dynamic> map)
factory

Properties

currentIndex int
CurrentIndex is the index of the last synced block in the current stage.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stage String?
Stage is the phase of the sync process.
final
targetIndex int?
TargetIndex is the index of the block that the implementation is attempting to sync to in the current stage.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited