showProgressNotification method
Future<void>
showProgressNotification(
{ - required int progress,
- 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,
})
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,
});
}