CKNotification class
Wrapper for JSNotification
, with additional metadata and uuid requirement.
Constructors
-
CKNotification.new(String uuid, JSNotification notification, Map<
String, dynamic> ? metadata) -
factory
-
CKNotification.builder({required String uuid, required String title, String? icon, String? body, int? badge, CKNotificationDirection? dir, bool? renotify, bool? requireInteraction, bool? silent, String? image, String? lang, VibratePattern? vibrate, int? timestamp, List<
CKNotificationAction> actions = const [], Map<String, dynamic> ? data, Map<String, dynamic> ? metadata}) -
Create a CKNotification using a factory builder, allows constructing a JsNotification via
individual properties. Allows providing a list of
actions
andmetadata
using within the CallKit plugin.factory - CKNotification.simple(String uuid, JSNotification notification)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> -
Callkit metadata, stores Callkit specific data, flags, etc.
final
- notification → JSNotification
-
JS notification
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → String
-
Unique notification Id
final
Methods
-
copyWith(
{JSNotification? notification, Map< String, dynamic> ? metadata}) → CKNotification - Returns a new CKNotification with updated metadata or notification.
-
copyWithSelf(
CKNotification other) → CKNotification - Returns a new CKNotification with updated metadata or notification.
-
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