saveProgress method

  1. @override
Future<void> saveProgress({
  1. required int completed,
  2. required int total,
})
override

Saves the progress to native storage.

completed is the number of completed tasks. total is the total number of tasks.

Implementation

@override
Future<void> saveProgress({
  required int completed,
  required int total,
}) async {
  await _channel.invokeMethod<void>(
    'saveProgress',
    <String, dynamic>{
      'completed': completed,
      'total': total,
    },
  );
}