CometChatCallLogs class

CometChatCallLogs is a component that displays a list of callLogs with the help of CometChatListBase and CometChatListItem fetched callLogs are listed down in order of recent activity callLogs are fetched using CallLogsBuilderProtocol and CallLogRequestBuilder

CometChatCallLogs(
 listItemView: (CallLog callLog, BuildContext context) {
 return ListTile(
 title: Text(callLog.receiver.name),
 subtitle: Text(callLog.receiver.uid),
 trailing: Icon(Icons.call),
 );
 },
 );
Inheritance

Constructors

CometChatCallLogs.new({Key? key, Widget? listItemView(CallLog callLog, BuildContext context)?, Widget? subTitleView(CallLog callLog, BuildContext context)?, Widget? backButton, WidgetBuilder? emptyStateView, WidgetBuilder? errorStateView, WidgetBuilder? loadingStateView, dynamic onItemClick(CallLog callLog)?, OnError? onError, VoidCallback? onBack, dynamic trailingView(BuildContext context, CallLog callLog)?, CallLogsBuilderProtocol? callLogsBuilderProtocol, String? datePattern, String? dateSeparatorPattern, CometChatCallLogsStyle? callLogsStyle, CallLogRequestBuilder? callLogsRequestBuilder, CometChatOutgoingCallConfiguration? outgoingCallConfiguration, Widget? audioCallIcon, Widget? videoCallIcon, Widget? incomingCallIcon, Widget? outgoingCallIcon, Widget? missedCallIcon, bool? hideAppbar = false, List<Widget>? appBarOptions, dynamic onCallLogIconClicked(CallLog callLog)?, dynamic onItemLongPress(CallLog callLog)?, List<CometChatOption>? addOptions(CallLog callLog, CometChatCallLogsController controller, BuildContext context)?, List<CometChatOption>? setOptions(CallLog callLog, CometChatCallLogsController controller, BuildContext context)?, OnEmpty? onEmpty, OnLoad<CallLog>? onLoad, Widget? leadingStateView(BuildContext, CallLog)?, Widget? titleView(BuildContext, CallLog)?, bool? showBackButton})
const

Properties

addOptions List<CometChatOption>? Function(CallLog callLog, CometChatCallLogsController controller, BuildContext context)?
addOptions adds into the current List of actions available on the long press of list item
final
appBarOptions List<Widget>?
appBarOptions list of options to be visible in app bar
final
audioCallIcon Widget?
audioCallIcon custom audio call icon
final
backButton Widget?
backButton returns back button
final
callLogsBuilderProtocol CallLogsBuilderProtocol?
callLogsBuilderProtocol set custom call Log request builder protocol
final
callLogsRequestBuilder CallLogRequestBuilder?
callLogRequestBuilder set custom conversations request builder
final
callLogsStyle CometChatCallLogsStyle?
callLogsStyle style for every call logs
final
datePattern String?
datePattern custom date pattern visible in callLogs
final
dateSeparatorPattern String?
dateSeparatorPattern pattern for date separator
final
emptyStateView WidgetBuilder?
emptyStateView returns view fow empty state
final
errorStateView WidgetBuilder?
errorStateView returns view fow error state
final
hashCode int
The hash code for this object.
no setterinherited
hideAppbar bool?
hideAppbar toggle visibility for app bar
final
incomingCallIcon Widget?
incomingCallIcon custom incoming call icon
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leadingStateView Widget? Function(BuildContext, CallLog)?
leadingStateView to set leading view for each callLog
final
listItemView Widget? Function(CallLog callLog, BuildContext context)?
listItemView set custom view for each callLog
final
loadingStateView WidgetBuilder?
loadingStateView returns view fow loading state
final
missedCallIcon Widget?
missedCallIcon custom missed call icon
final
onBack VoidCallback?
onBack callback triggered on closing this screen
final
onCallLogIconClicked → dynamic Function(CallLog callLog)?
onCallLogIconClicked callback triggered on clicking of the callLog icon audio/video icon
final
onEmpty OnEmpty?
onEmpty callback triggered when the list is empty
final
onError OnError?
onError callback triggered in case any error happens when fetching callLogs
final
onItemClick → dynamic Function(CallLog callLog)?
onItemClick callback triggered on clicking of the callLog item
final
onItemLongPress → dynamic Function(CallLog callLog)?
onItemLongPress callback triggered on long pressing of the callLog item
final
onLoad OnLoad<CallLog>?
onLoad callback triggered when list is fetched and load
final
outgoingCallConfiguration CometChatOutgoingCallConfiguration?
outgoingCallConfiguration is a object of OutgoingCallConfiguration which sets the configuration for outgoing call
final
outgoingCallIcon Widget?
outgoingCallIcon custom outgoing call icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setOptions List<CometChatOption>? Function(CallLog callLog, CometChatCallLogsController controller, BuildContext context)?
setOptions sets List of actions available on the long press of list item
final
showBackButton bool?
showBackButton switch on/off back button
final
subTitleView Widget? Function(CallLog callLog, BuildContext context)?
subTitleView set custom sub title view for each callLog
final
titleView Widget? Function(BuildContext, CallLog)?
titleView to set title view for each callLog
final
trailingView → dynamic Function(BuildContext context, CallLog callLog)?
trailingView a custom widget for the tail section of the callLog list item
final
videoCallIcon Widget?
videoCallIcon custom video call icon
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CometChatCallLogs>
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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

Operators

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