DidReceiveLocalNotificationCallback typedef

DidReceiveLocalNotificationCallback = void Function(int id, String? title, String? body, String? payload)

Signature of the callback that is triggered when a notification is shown whilst the app is in the foreground.

This property is only applicable to iOS versions older than 10.

Implementation

typedef DidReceiveLocalNotificationCallback = void Function(
    int id, String? title, String? body, String? payload);