Award constructor

Award(
  1. {required String description,
  2. required String formalName,
  3. required FluentData icon,
  4. int? timeUnlocked}
)

Implementation

Award(
    {required String description,
    required String formalName,
    required FluentData icon,
    int? timeUnlocked})
    : _description = description,
      _formalName = formalName,
      _icon = icon,
      _timeUnlocked = timeUnlocked ?? -1 {
  final String id =
      formalName.toLowerCase().trim().replaceAll(" ", "_");
  Debug().info(
      "Registered Award: $_formalName as $id (IS UNLOCKED? $isUnlocked)");
}