CometChatOutgoingCall class
CometChatOutgoingCall is a widget which is used to show outgoing call screen when the logged-in user calls another user.
CometChatOutgoingCall(
call: call,
user: user,
onError: (error) {
print("Error: $error");
},
onCancelled: (context, call) {
print("Decline Call");
},
declineButtonIcon: Icon(Icons.call_end),
style: CometChatOutgoingCallStyle(
backgroundColor: Colors.white,
titleColor: Colors.black,
subtitleColor: Colors.black,
iconColor: Colors.black,
),
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CometChatOutgoingCall
Constructors
- CometChatOutgoingCall({Key? key, required Call call, User? user, OnError? onError, dynamic onCancelled(BuildContext context, Call call)?, Widget? subtitleView(BuildContext context, Call call)?, bool? disableSoundForCalls, String? customSoundForCalls, String? customSoundForCallsPackage, Widget? declineButtonIcon, CometChatOutgoingCallStyle? outgoingCallStyle, SessionSettingsBuilder? sessionSettingsBuilder, double? width, double? height, Widget? avatarView(BuildContext context, Call call)?, Widget? titleView(BuildContext context, Call call)?, Widget? cancelledView(BuildContext context, Call call)?, OutgoingCallBloc? bloc})
-
const
Properties
- avatarView → Widget? Function(BuildContext context, Call call)?
-
Avatar view builder
final
- bloc → OutgoingCallBloc?
-
Optional external BLoC for testing/injection
final
- call → Call
-
The active outgoing call
final
- cancelledView → Widget? Function(BuildContext context, Call call)?
-
Cancelled view builder (bottom action button)
final
- customSoundForCalls → String?
-
Custom sound asset for calls
final
- customSoundForCallsPackage → String?
-
Package name for custom sound asset
final
- declineButtonIcon → Widget?
-
Custom decline button icon
final
- disableSoundForCalls → bool?
-
Whether to disable sound for calls
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Widget height
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCancelled → dynamic Function(BuildContext context, Call call)?
-
Callback when call is cancelled
final
- onError → OnError?
-
Error callback
final
- outgoingCallStyle → CometChatOutgoingCallStyle?
-
Custom outgoing call style
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionSettingsBuilder → SessionSettingsBuilder?
-
Custom session settings builder (V5)
final
- subtitleView → Widget? Function(BuildContext context, Call call)?
-
Subtitle view builder
final
- titleView → Widget? Function(BuildContext context, Call call)?
-
Title view builder
final
- user → User?
-
User being called (optional, for display purposes)
final
- width → double?
-
Widget width
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CometChatOutgoingCall> -
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