CamController class
Camera controller
- Inheritance
-
- Object
- ChangeNotifier
- ValueNotifier<
CamValue> - CamController
Constructors
- CamController()
- Dispose controller properly for better performance.
Properties
- cameraController → CameraController?
-
Flutter Camera controller
no setter
- drishyaEditingController → DrishyaEditingController
-
Photo editing controller
no setter
- editorSetting → EditorSetting
-
Text editor setting
no setter
- exposureController → ExposureController
-
Camera exposure controller
no setter
- galleryController → GalleryController
-
Gallery controller
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- initialized → bool
-
Check if camera has been initialized or not
no setter
- pageController → PageController
-
Pageview controller
no setter
- photoEditorSetting → EditorSetting
-
Photo editor setting
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setting → CameraSetting
-
Camera setting
no setter
- value ↔ CamValue
-
The current value stored in this notifier.
getter/setter pairinherited-getteroverride-setter
- zoomController → ZoomController
-
Camera zoom controller
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
changeCameraType(
CameraType type) → void - Change camera type
-
changeFlashMode(
) → Future< void> - Set flash mode
-
createCamera(
{CameraDescription? cameraDescription}) → Future< CameraController?> - Create new camera
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
init(
{CameraSetting? setting, EditorSetting? editorSetting, EditorSetting? photoEditorSetting}) → void - Initialize controller settings
-
lockUnlockCaptureOrientation(
) → Future< void> - Lock unlock capture orientation i,e. Portrait and Landscape
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
openCamera(
) → void - Open camera
-
openGallery(
) → void - Open gallery
-
pauseVideoRecording(
) → Future< void> - Pause video recording
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resumeVideoRecording(
) → Future< void> - Resume video recording
-
startVideoRecording(
) → Future< void> - Start video recording
-
stopVideoRecording(
BuildContext context, {bool createEntity = true}) → Future< DrishyaEntity?> - Stop/Complete video recording
-
switchCameraDirection(
CameraLensDirection direction) → void - Switch camera direction
-
takePicture(
BuildContext context) → Future< DrishyaEntity?> - Take picture
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{bool? isPlaygroundActive}) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited