DailyTaskModel class

Constructors

DailyTaskModel({String? id, required String taskKey, required String name, String? description, required DailyTaskCriteriaType criteriaType, required int criteriaValue, required int xpReward, bool isActive = true, int currentProgress = 0, bool isCompleted = false, bool isClaimed = false, DateTime? completedAt, DateTime? createdAt})
DailyTaskModel.fromJson(Map<String, dynamic> json)
factory

Properties

box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
completedAt DateTime?
final
createdAt DateTime?
final
criteriaType DailyTaskCriteriaType
final
criteriaValue int
final
currentProgress int
final
description String?
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
isActive bool
final
isClaimed bool
final
isCompleted bool
final
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskKey String
final
xpReward int
final

Methods

delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited