getFixed method
Returns the fixed version of object
This method is called by the generator after generation and before returning the object.
Implementation
@override
Holiday getFixed(Holiday holiday) {
for (final time in celebratoryTime) {
if (holiday.name.toLowerCase().contains(" $time")) {
return holiday.copyWith(duration: "one $time");
}
}
return holiday;
}