InquiryOption class

Constructors

InquiryOption({required int id, required Widget title, required int votes, bool rightAnswer = false})

Properties

hashCode int
The hash code for this object.
no setteroverride
id int
The id of the object. Will be used to identify the object on a list, and to determine if the object was selected must be unique in the list.
final
rightAnswer bool
indicate if this option is the right answer for the inquiry
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title Widget
It can be any widget with an unbounded size that will be shown inside the Inquiry Option
final
votes int
The amount of people that have voted for this option
getter/setter pair

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.
override