ChoiceOption class final

Implemented types

Constructors

ChoiceOption.double({required String name, required String description, required List<Choice<double>> choices, bool required = false})
factory
ChoiceOption.integer({required String name, required String description, required List<Choice<int>> choices, bool required = false})
factory
ChoiceOption.string({required String name, required String description, required List<Choice<String>> choices, bool required = false})
factory

Properties

channelTypes List<ChannelType>?
final
choices List<Choice>
final
description String
final
hashCode int
The hash code for this object.
no setterinherited
isRequired bool
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type CommandOptionType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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