isGiftMsg method

bool isGiftMsg()

Implementation

bool isGiftMsg() {
  if (body.type == BodyType.CUSTOM) {
    return (body as CustomBody).event == ChatRoomUIKitEvent.giftEvent;
  } else {
    return false;
  }
}