getLastBlockIndex method
Return the latest block index. @returns {Promise<number>} The latest block index, or a TransactionError for error.
Implementation
Future<int> getLastBlockIndex() async {
final response = await networkStatus();
return response.currentBlockIdentifier.index;
}