setBag method

  1. @override
void setBag(
  1. int count, {
  2. String? title,
  3. String? content,
})
override

设置小米的小角标

Implementation

@override
void setBag(int count, {String? title, String? content}) {
  methodChannel.invokeMapMethod("push", {"badgeCount": count, "title": title ?? '', "content": content ?? ""});
}