Button class final

Implemented types

Constructors

Button({required ButtonType type, String? customId, String? label, String? url, PartialEmoji? emoji, bool? disabled})
Button.danger(String customId, {String? label, PartialEmoji? emoji, bool? disabled})
factory
factory
Button.premium(String skuId, {String? label, PartialEmoji? emoji, bool? disabled})
factory
Button.primary(String customId, {String? label, PartialEmoji? emoji, bool? disabled})
factory
Button.secondary(String customId, {String? label, PartialEmoji? emoji, bool? disabled})
factory
Button.success(String customId, {String? label, PartialEmoji? emoji, bool? disabled})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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