SBUGroupChannelScreen class

SBUGroupChannelScreen

Inheritance

Constructors

SBUGroupChannelScreen.new({required String channelUrl, MessageListParams? params, void onMessageCollectionReady(int messageCollectionNo)?, void onScrollControllerReady(ScrollController)?, void onChannelDeleted(GroupChannel)?, void onInfoButtonClicked(int messageCollectionNo)?, void on1On1ChannelCreated(GroupChannel)?, void onListItemClicked(GroupChannel, BaseMessage)?, double scrollExtentToTriggerPreloading = defaultScrollExtentToTriggerPreloading, double cacheExtent = defaultCacheExtent, Widget customHeader(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?, Widget customListItem(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection, int index, BaseMessage message)?, Widget customMessageInput(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?, Widget customLoadingBody(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?, Widget customEmptyBody(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?, Widget customErrorScreen(BuildContext context, SBUTheme theme, SBUStrings strings)?, Widget customFrozenChannel(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?, Key? key})
const

Properties

cacheExtent double
final
channelUrl String
final
customEmptyBody Widget Function(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?
final
customErrorScreen Widget Function(BuildContext context, SBUTheme theme, SBUStrings strings)?
final
customFrozenChannel Widget Function(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?
final
customHeader Widget Function(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?
final
customListItem Widget Function(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection, int index, BaseMessage message)?
final
customLoadingBody Widget Function(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?
final
customMessageInput Widget Function(BuildContext context, SBUTheme theme, SBUStrings strings, MessageCollection collection)?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
on1On1ChannelCreated → void Function(GroupChannel)?
final
onChannelDeleted → void Function(GroupChannel)?
final
onInfoButtonClicked → void Function(int messageCollectionNo)?
final
onListItemClicked → void Function(GroupChannel, BaseMessage)?
final
onMessageCollectionReady → void Function(int messageCollectionNo)?
final
onScrollControllerReady → void Function(ScrollController)?
final
params → MessageListParams?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollExtentToTriggerPreloading double
final

Methods

amIFrozen(GroupChannel? channel) bool
inherited
amIMuted(GroupChannel? channel) bool
inherited
amIOperator(GroupChannel? channel) bool
inherited
canChooseDocument() bool
inherited
canChooseMedia() bool
inherited
canChoosePhoto() bool
inherited
canGetFile() bool
inherited
canGetPhotoFile() bool
inherited
canTakePhoto() bool
inherited
canTakeVideo() bool
inherited
copyTextToClipboard(String text, SBUStrings strings) Future<void>
inherited
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getAvatarComponent({required bool isLightTheme, required double size, User? user}) → SBUAvatarComponent
inherited
getChannelCacheKey(BaseChannel? channel) String?
inherited
getDefaultContainer(bool isLightTheme, {Widget? child}) Widget
inherited
getFileType(FileMessage message) → SBUFileType
inherited
getGroupChannelAvatarComponent({required bool isLightTheme, required double size, required GroupChannel channel}) → SBUAvatarComponent
inherited
getGroupChannelName(GroupChannel channel, SBUStrings strings) String
inherited
getMessageCacheKey(BaseMessage? message) String?
inherited
getMyMember(GroupChannel? channel) → Member?
inherited
getNickname(User? user, SBUStrings strings) String
inherited
getNicknameOrYou(User? user, SBUStrings strings) String
inherited
getReadStatusIcon(GroupChannel channel, BaseMessage? message, bool isLightTheme) → SBUIconComponent?
inherited
getThumbnailSize() Size
inherited
getTypingStatus(GroupChannel channel, SBUStrings strings) String?
inherited
isDisabled(GroupChannel? channel) bool
inherited
isReplyMessageToChannel(BaseMessage message) bool
inherited
isThemeTestOn() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showToast({required bool isLightTheme, required String text, bool isError = false}) → void
inherited
sortMembersByNickname(List<Member> members) List<Member>
inherited
sortUsersByNickname(List<User> users) List<User>
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
unfocus() → void
inherited

Operators

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