ZegoCameraStateIcon constructor
ZegoCameraStateIcon({
- Key? key,
- required ZegoUIKitUser? targetUser,
- Image? iconCameraOn,
- 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),
);