backgrounMessageHandler function Null safety

dynamic backgrounMessageHandler(
  1. SmsMessage message
)

The static call-back method for handling in-coming SMS messages when the app is in the background.

Implementation

backgrounMessageHandler(SmsMessage message) async {
  _textMessageProbeController.add(
      TextMessageDatum.fromTextMessage(TextMessage.fromSmsMessage(message)));
}