getLastBlockIndex method

Future<int> getLastBlockIndex()

Return the latest block index. @returns {Promise

Implementation

Future<int> getLastBlockIndex() async {
  final response = await networkStatus();
  return response.currentBlockIdentifier.index;
}