ZegoCameraStateIcon constructor

ZegoCameraStateIcon({
  1. Key? key,
  2. required ZegoUIKitUser? targetUser,
  3. Image? iconCameraOn,
  4. Image? iconCameraOff,
})

Implementation

ZegoCameraStateIcon({
  Key? key,
  required this.targetUser,
  this.iconCameraOn,
  this.iconCameraOff,
}) : super(
        key: key,
        notifier: ZegoUIKit().getCameraStateNotifier(targetUser?.id ?? ''),
        normalIcon: iconCameraOff ??
            UIKitImage.asset(StyleIconUrls.iconVideoViewCameraOff),
        checkedIcon: iconCameraOn ??
            UIKitImage.asset(StyleIconUrls.iconVideoViewCameraOn),
      );