widget method
Implementation
@override
Widget widget({
Key? key,
BuildContext? context,
}) {
if (context == null) {
return SizedBox.shrink();
}
return CameraWidget(
key: key,
generalLibraryCameraBase: this,
onCameraNotInit: (context) {
return const Text("camera not init");
},
onCameraNotSelect: (context) {
return const Text(
"Camera Not Select",
);
},
onCameraNotActive: (context) {
return const Text("Camera not active");
},
onPlatformNotSupported: (context) {
return const Text("not support");
},
);
}