CameraModule class
Module for controlling device cameras and receiving frame streams.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
CameraFrame> -
A stream of CameraFrame objects captured in real-time.
no setter
Methods
-
flip(
) → Future< bool> - Flips between front and back cameras.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFlash(
bool on) → Future< bool> - Toggles the device flash/torch.
-
setZoom(
double level) → Future< bool> - Sets the digital zoom level (e.g., 1.0 to 10.0).
-
start(
{CameraQuality quality = CameraQuality.hd, int? width, int? height}) → Future< int?> -
Starts the camera and returns the native
textureIdfor rendering. -
stop(
) → Future< bool> - Stops the camera and releases all native resources.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited