20 lines
483 B
Dart
20 lines
483 B
Dart
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
||
|
part 'habit_model.freezed.dart';
|
||
|
|
||
|
@freezed
|
||
|
class Rabbit with _$Habit {
|
||
|
const factory Rabbit({
|
||
|
required String id,
|
||
|
required String description,
|
||
|
required String name,
|
||
|
required int icon,
|
||
|
required String frequency,
|
||
|
required int? goal,
|
||
|
required int streak,
|
||
|
required List<int> onlyOn,
|
||
|
required List<DateTime> doneOn,
|
||
|
required bool isExpanded,
|
||
|
required bool isDone,
|
||
|
}) = _Habit;
|
||
|
}
|