init method

Future<Stream<NotificationData?>?> init({
  1. required String senderId,
  2. required List<NotificationChannelData> androidChannelList,
  3. required String androidNotificationIconPath,
  4. Future<bool> updateTokenCallback(
    1. String fcmToken
    )?,
})

Initializes the notification utility with necessary configurations.

Implementation

Future<Stream<NotificationData?>?> init({
  required final String senderId,
  required final List<NotificationChannelData> androidChannelList,
  required final String androidNotificationIconPath,
  final Future<bool> Function(String fcmToken)? updateTokenCallback,
}) async {
  return await FirebaseMessagingUtility.instance.init(
    senderId: senderId,
    androidChannelList: androidChannelList,
    androidNotificationIconPath: androidNotificationIconPath,
    updateTokenCallback: updateTokenCallback,
  );
}