Question class

Annotations
  • @freezed

Constructors

Question({String? id, List<String>? options, String? statement, String? answer, int? answerIndex, String? selectedAnswer, Actor? user})
const
factory
Question.fromJson(Map<String, dynamic> json)
factory

Properties

answer String?
no setterinherited
answerIndex int?
no setterinherited
copyWith → $QuestionCopyWith<Question>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
no setterinherited
options List<String>?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedAnswer String?
no setterinherited
statement String?
no setterinherited
user Actor?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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