InlineButton class
Represents a button inside a rich message
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Constructors
- InlineButton({required RichText text, required ButtonStyle style, required InlineKeyboardButtonType type})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ButtonStyle
-
style Style of the button
final
- text → RichText
-
text Text of the button; only richTexts, richTextPlain, and
richTextCustomEmoji are allowed
final
- type → InlineKeyboardButtonType
-
type Type of the button; must be one of inlineKeyboardButtonTypeUrl,
inlineKeyboardButtonTypeLoginUrl, inlineKeyboardButtonTypeWebApp,
inlineKeyboardButtonTypeCallback, inlineKeyboardButtonTypeSwitchInline,
inlineKeyboardButtonTypeUser, inlineKeyboardButtonTypeCopyText.
Additionally, inlineKeyboardButtonTypeCallbackWithPassword and
inlineKeyboardButtonTypeDisabled may be received in incoming messages.
Regular users may use only inlineKeyboardButtonTypeUrl,
inlineKeyboardButtonTypeUser and inlineKeyboardButtonTypeCopyText
final
Methods
-
copyWith(
{RichText? text, ButtonStyle? style, InlineKeyboardButtonType? type}) → InlineButton -
Available on InlineButton, provided by the InlineButtonExtensions extension
-
getConstructor(
) → String -
override
-
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.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → InlineButton?
Constants
- constructor → const String