widget method

  1. @override
Widget widget({
  1. Key? key,
  2. BuildContext? context,
})
override

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");
    },
  );
}