Quit-Your-Addictions/lib/models/habit_model.dart

20 lines
483 B
Dart
Raw Permalink Normal View History

2024-01-07 01:49:35 +01:00
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;
}