Displaying a notification in Flutter To display a notification, we need to create a platform-specific NotificationDetails instance , which takes in arguments that are unique to each platform. AndroidNotificationDetails handles the configuration of notifications in Android devices.