IMessageComponent class Null safety

Generic container for components that can be attached to message

Implementers

Properties

disabled bool
True if button is disabled
final, read / write, late
emoji MessageComponentEmoji?
Additional emoji that will be displayed before label
final, read / write, late
hashCode int
The hash code for this object. [...]
read-only, inherited
label String
What the button says (max 80 characters)
final, read / write, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
style ComponentStyle
Component style, appearance
final, read / write, late

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

Constants

type → const int
Component type. For button will be always 2.
2