Challenge class
A nightwave challenge.
- Inheritance
-
- Object
- WorldstateObject
- Challenge
- Annotations
-
- @JsonSerializable.new()
Constructors
- Challenge({required String id, required DateTime activation, required DateTime expiry, required String title, required String desc, required int reputation, required bool isElite, bool isDaily = false})
-
A nightwave challenge.
const
-
Challenge.fromJson(Map<
String, dynamic> json) -
Creates a Challenge from Json map.
factory
Properties
- activation → DateTime?
-
The time the state was activated.
finalinherited
- active → bool
-
Whether or not the object was active after it was created.
no setterinherited
- desc → String
-
Challenge description.
final
- expiry → DateTime?
-
The time the state will expire.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
ID of the instance.
finalinherited
- isDaily → bool
-
Whether this challenge is a daily challenge.
final
- isElite → bool
-
Whether this challenge is an elite challenge.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- remaining → Duration?
-
The remaining time until the state expires.
no setterinherited
- reputation → int
-
Reputation awarded for completing this challenge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - title → String
-
Challenge title.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a Json map from a Challenge.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited