cacheDeliveryReceipt method Null safety

void cacheDeliveryReceipt(
  1. BaseChannel channel
)

Implementation

void cacheDeliveryReceipt(BaseChannel channel) {
  if (this['delivery_receipt'] != null) {
    final status = DeliveryStatus(
      channelUrl: channel.channelUrl,
      updatedDeliveryReceipt: Map<String, int>.from(this['delivery_receipt']),
    );
    status.saveToCache();
  }
}