HMSPoll class
HMSPoll class represents poll
This class encapsulates various properties and methods related to a poll, including its ID, title, anonymity status, category (poll or quiz), creator, duration, user tracking mode, question count, questions, result display settings, roles that can view responses, roles that can vote, start time, starter, current state, stop time, and stopper.
Constructors
-
HMSPoll({required String pollId, required String title, required bool anonymous, required HMSPollCategory category, required HMSPeer? createdBy, required Duration? duration, required HMSPollUserTrackingMode? pollUserTrackingMode, required int? questionCount, required List<
HMSPollQuestion> ? questions, required HMSPollResultDisplay? result, required List<HMSRole> rolesThatCanViewResponses, required List<HMSRole> rolesThatCanVote, required DateTime? startedAt, required HMSPeer? startedBy, required HMSPollState state, required DateTime? stoppedAt, required HMSPeer? stoppedBy}) - HMSPoll.fromMap(Map map)
-
factory
Properties
- anonymous → bool
-
final
- category → HMSPollCategory
-
final
- createdBy → HMSPeer?
-
final
- duration → Duration?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pollId → String
-
final
- pollUserTrackingMode → HMSPollUserTrackingMode?
-
final
- questionCount → int?
-
final
-
questions
→ List<
HMSPollQuestion> ? -
final
- result → HMSPollResultDisplay?
-
final
-
rolesThatCanViewResponses
→ List<
HMSRole> -
final
-
rolesThatCanVote
→ List<
HMSRole> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedAt → DateTime?
-
final
- startedBy → HMSPeer?
-
final
- state → HMSPollState
-
final
- stoppedAt → DateTime?
-
final
- stoppedBy → HMSPeer?
-
final
- title → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited