StickerConfiguration class

StickerConfiguration is a data class that has configuration properties to customize the functionality and appearance of StickersExtension


final stickerConfig = StickerConfiguration(
  errorIcon: Icon(Icons.error),
  emptyStateView: (context) => Text('No stickers available.'),
  errorStateView: (context) => Text('Failed to load stickers.'),
  loadingStateView: (context) => CircularProgressIndicator(),
  errorStateText: 'Error fetching stickers',
  emptyStateText: 'No stickers available',
  stickerButtonIcon: Icon(Icons.sticky_note_2),
  keyboardButtonIcon: Icon(Icons.keyboard),
  theme: CometChatTheme(),
  stickerKeyboardStyle: StickerKeyboardStyle(),
);

Constructors

StickerConfiguration({Widget? errorIcon, WidgetBuilder? emptyStateView, WidgetBuilder? errorStateView, WidgetBuilder? loadingStateView, String? errorStateText, String? emptyStateText, Widget? stickerButtonIcon, Widget? keyboardButtonIcon, CometChatTheme? theme, StickerKeyboardStyle? stickerKeyboardStyle, Color? stickerIconTint, Color? keyboardIconTint})

Properties

emptyStateText String?
emptyStateText text to be shown at empty state
final
emptyStateView WidgetBuilder?
emptyStateView to be shown when there are no stickers
final
errorIcon Widget?
errorIcon icon to be shown in case of any error
final
errorStateText String?
errorStateText text to be show in error state
final
errorStateView WidgetBuilder?
errorStateView to be shown when some error occurs on fetching the sticker
final
hashCode int
The hash code for this object.
no setterinherited
keyboardButtonIcon Widget?
keyboardButtonIcon hides stickers keyboard
final
keyboardIconTint Color?
keyboardIconTint provides color to the keyboard Icon/widget
final
loadingStateView WidgetBuilder?
loadingStateView view at loading state
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stickerButtonIcon Widget?
stickerButtonIcon shows stickers keyboard
final
stickerIconTint Color?
stickerIconTint provides color to the sticker Icon/widget
final
stickerKeyboardStyle StickerKeyboardStyle?
stickerKeyboardStyle style for the sticker keyboard
final
theme CometChatTheme?
theme sets custom theme
final

Methods

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.
inherited