HMSPollQuestion class
HMSPollQuestion class represents poll question
Constructors
-
HMSPollQuestion({required int questionId, required List<
HMSPollQuestionOption> options, required String text, required HMSPollQuestionType type, required int weight, required bool voted, required bool canSkip, HMSPollQuestionAnswer? correctAnswer, required Duration duration, required List<HMSPollAnswer> myResponses, required bool canChangeResponse}) - HMSPollQuestion.fromMap(Map map)
-
factory
Properties
- canChangeResponse → bool
-
final
- canSkip → bool
-
final
- correctAnswer → HMSPollQuestionAnswer?
-
final
- duration → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
myResponses
→ List<
HMSPollAnswer> -
final
-
options
→ List<
HMSPollQuestionOption> -
final
- questionId → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
final
- type → HMSPollQuestionType
-
final
- voted → bool
-
final
- weight → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited