sendLocalNotifi static method

void sendLocalNotifi({
  1. String orderId = '12345678',
})

发送本地消息

Implementation

static void sendLocalNotifi({String orderId = '12345678'}) {
  LocalNotification localNotification = LocalNotification(
      buildId: 1,
      id: 100,
      title: '您有新订单,请及时处理',
      content: '您有新订单,请及时处理',
      fireTime: DateTime.now().add(const Duration(milliseconds: 1000)),
      extra: {'orderId': orderId});
  jpush.sendLocalNotification(localNotification);
}