update method

Future<void> update(
  1. int count
)

Updates the app badge count.

Throws an ArgumentError if count is negative.

Implementation

Future<void> update(int count) async {
  if (count < 0) throw ArgumentError('count must be non-negative');
  await _platform.update(count);
}