Barrage constructor

const Barrage({
  1. Key? key,
  2. Widget barrageItemBuilder(
    1. BuildContext context,
    2. V2TimMessage message,
    3. Widget child
    )?,
  3. Widget barrageItemPrefix(
    1. BuildContext context,
    2. V2TimMessage message
    )?,
  4. V2TimMessage? initialMessage,
  5. int? cacheCount,
  6. required String avChatRoomID,
})

Implementation

const Barrage(
    {Key? key,
    this.barrageItemBuilder,
    this.barrageItemPrefix,
    this.initialMessage,
    int? cacheCount,
    required this.avChatRoomID})
    : cachedMessageCount = cacheCount ?? 200,
      super(key: key);