Question class
Constructors
-
Question.new({required String question, required String subHeading, required List<
String> options, required String? correctOption, String? imageId, required bool skipOption, required int duration, required Reward reward, required String id, String? imageUrl}) -
Question.fromJson(Map<
String, dynamic> json) -
factory
Properties
- correctOption ↔ String?
-
getter/setter pair
- duration ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
getter/setter pair
- imageId ↔ String?
-
getter/setter pair
- imageUrl ↔ String?
-
getter/setter pair
-
options
↔ List<
String> -
getter/setter pair
- question ↔ String
-
getter/setter pair
- reward ↔ Reward
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipOption ↔ bool
-
getter/setter pair
- subHeading ↔ String
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited