handler method
Do not call this method. This method is visible only for testing.
Implementation
@visibleForTesting
Future<dynamic> handler(MethodCall call) async {
switch (call.method) {
case ON_MESSAGE:
final message = call.arguments["message"];
return _onNewMessage(SmsMessage.fromMap(message, INCOMING_SMS_COLUMNS));
case SMS_SENT:
return _statusListener(SendStatus.SENT);
case SMS_DELIVERED:
return _statusListener(SendStatus.DELIVERED);
}
}