showProgressNotification method

Future<void> showProgressNotification({
  1. required int progress,
  2. int notificationId = 1,
  3. String channelId = 'channel_id',
  4. String channelName = 'channel_name',
  5. String channelDesc = '',
  6. String title = 'Noti Content Title',
  7. String content = 'Noti Content Text',
  8. bool indeterminate = false,
})

Implementation

Future<void> showProgressNotification({
  required int progress, // 0 ~ 100
  int notificationId = 1,
  String channelId = 'channel_id',
  String channelName = 'channel_name',
  String channelDesc = '',
  String title = 'Noti Content Title',
  String content = 'Noti Content Text',
  bool indeterminate = false,
}) async {
  await _channel.invokeMethod('$_name/showProgressNotification', {
    'notificationId': notificationId,
    'channelId': channelId,
    'channelName': channelName,
    'channelDesc': channelDesc,
    'title': title,
    'content': content,
    "progress": progress,
    "indeterminate": indeterminate,
  });
}