icon property

String? icon
final

The icon to display on the notification.

Only customizable for Android. On iOS, it will use app default icon.

This refers to the small icon that is displayed in the status bar and next to the notification content in both collapsed and expanded views.

Note that the icon must be monochrome and on a transparent background and preferably 24x24 dp in size.

Only PNG and XML formats are supported at the moment. Please open an issue to request support for more formats.

You must add your icon to your Android project's res/drawable directory. Example: android/app/src/main/res/drawable/notification_icon.png

And pass: icon: notification_icon without the file extension.

If null, the default app icon will be used. Defaults to null.

Implementation

final String? icon;