Poll class

Available Extensions
Annotations
  • @freezed

Constructors

Poll({@Default(false) bool isQuiz, @Default(false) bool isQuestion, int? duration, String? title, String? endTime, bool? isExpired, String? instructions, List<Question>? questions, List<Submissions>? myAnswer, List<Answers>? answers, @Default(false) bool isAnsweredByMe, Map<String, double>? votes, int? voteCount, @Default(0) int answersCount, MySelection? selection})
const
factory
Poll.fromJson(Map<String, dynamic> json)
factory

Properties

answers List<Answers>?
no setterinherited
answersCount int
no setterinherited
copyWith → $PollCopyWith<Poll>
no setterinherited
duration int?
no setterinherited
endTime String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
instructions String?
no setterinherited
isAnsweredByMe bool
no setterinherited
isExpired bool?
no setterinherited
isQuestion bool
no setterinherited
isQuiz bool
no setterinherited
myAnswer List<Submissions>?
no setterinherited
questions List<Question>?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection MySelection?
no setterinherited
title String?
no setterinherited
voteCount int?
no setterinherited
votes Map<String, double>?
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