CallEvent class

Holds the data for CallKeep call event

But it's also the data returned with multiple events in the package

Constructors

CallEvent({required String uuid, String? callerName, String? handle, bool hasVideo = false, bool isAccepted = false, double duration = 180, Map<String, dynamic>? extra})
CallEvent.fromMap(Map<String, dynamic> map)
factory

Properties

callerName → String?
Caller's name.
final
duration → double
Incoming/Outgoing call display time (in seconds). If the time is over, the call will be missed.
final
extra → Map<String, dynamic>?
Any data added to the event when received.
final
handle → String?
The handle of the caller (Phone number/Email/Any.)
final
hashCode → int
The hash code for this object.
no setterinherited
hasVideo → bool
Whether the call has video or audio only
final
isAccepted → bool
Whether call is accepted or not, defaults to false
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uuid → String
A unique UUID identifier for each call and when the call is ended, the same UUID for that call to be used.
finalinherited

Methods

copyWith({String? callerName, String? handle, bool? hasVideo, bool? isAccepted, double? duration, Map<String, dynamic>? extra}) → CallEvent
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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