ActiveThread.from constructor

ActiveThread.from({
  1. required String id,
  2. required int xp,
  3. required Cohort cohort,
  4. required bool hasWon,
  5. required bool hasLost,
  6. required bool hasPromoted,
  7. required bool hasDemoted,
})

Returns the new instance of ActiveThread based on arguments.

Implementation

ActiveThread.from({
  required this.id,
  required this.xp,
  required this.cohort,
  required this.hasWon,
  required this.hasLost,
  required this.hasPromoted,
  required this.hasDemoted,
});