update method
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);
}
Updates the app badge count.
Throws an ArgumentError if count is negative.
Future<void> update(int count) async {
if (count < 0) throw ArgumentError('count must be non-negative');
await _platform.update(count);
}