MBPollElement class Null safety

This class represents a MBurger poll element, the property answers contains the answers the user can give to a the poll.

Inheritance

Constructors

MBPollElement({required Map<String, dynamic> dictionary})
Initializes a poll element with the dictionary returned by the MBurger APIs. [...]
factory

Properties

answer MBPollAnswer?
The answer.
final
answered bool
If the current user/device has answered.
final
answers List<MBPollAnswer>
The possible answers for the poll.
final
expiration DateTime?
The expiration date of the poll.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
The id of the element.
final, inherited
order int
The order of the element.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type MBElementType
The type of the element.
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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