Hook constructor

Hook({
  1. required List<HookTask> tasks,
  2. List<String> diffArgs = const [],
  3. bool allowEmpty = false,
  4. String? diffFilters,
  5. bool? backupFiles,
})

Implementation

Hook({
  required this.tasks,
  this.diffArgs = const [],
  this.allowEmpty = false,
  this.diffFilters,
  bool? backupFiles,
}) : backupFiles = backupFiles ?? diffArgs.isEmpty;