SILFCM constructor

SILFCM({
  1. FirebaseMessaging? firebaseMessagingObj,
  2. FlutterLocalNotificationsPlugin? localNotifications,
})

Implementation

factory SILFCM(
    {FirebaseMessaging? firebaseMessagingObj,
    FlutterLocalNotificationsPlugin? localNotifications}) {
  firebaseMessaging = firebaseMessagingObj ?? FirebaseMessaging.instance;
  localNotificationsPlugin =
      localNotifications ?? FlutterLocalNotificationsPlugin();
  return _singleton;
}