UpdateCommand constructor

UpdateCommand({
  1. AlexLocalData? localData,
})

Implementation

UpdateCommand({AlexLocalData? localData})
    : _localData = localData ?? AlexLocalData(),
      super(
        'update',
        'Update alex to the latest version from pub.flutter-io.cn.',
      ) {
  argParser
    ..addFlagArg(
      _argChange,
      help: 'Run check if there are updates available for alex.',
    );
}