update method

Future<bool> update()

Implementation

Future<bool> update() async {
  try {
    await pubUpdater.update(packageName: 'barreler');
  } catch (error) {
    final data = jsonDecode(error.toString());
    logger.detail('$data');

    return false;
  }

  return true;
}