PollOption<T extends Object> class

Annotations

Constructors

PollOption({required T id, required String label, int voteCount = 0})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
id → T
A single answer a poll can be voted for.
final
label → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
voteCount → int
final

Methods

copyWith({String? label, int? voteCount}) → PollOption<T>
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