setNotificationIcon method

Future<String> setNotificationIcon(
  1. String assetPath
)

Set a custom IconTitle to be displayed in the notification bar for the chathead. Please note that in some cases, this is gonna ignore any asset given, and instead use the default icon launcher.

Implementation

Future<String> setNotificationIcon(String assetPath) async {
  final int result = await (_platform.invokeMethod(
      'setNotificationIcon', assetPath) as FutureOr<int>);
  return result > 0 ? "NotificationIcon set" : "There was an error.";
}