restart method

Future<void> restart()

Returns a Future that completes when the IPFS node has restarted by performing a stop and then a start.

Throws NodeShutdownError if stop fails. Throws NodeStartupError if start fails.

Implementation

Future<void> restart() async {
  _logger.info('Restarting IPFS Node...');
  await stop();
  await start();
}