Cameras class

Cameras is the class to represent the camera.

Constructors

Cameras({required String name, required String resolution, required String videoResolution, required String orientation, required String focalLength, required List<String> focusModes, required bool videoSnapshotSupported, required bool videoStabilizationSupported, required bool zoomSupported, required bool smoothZoomSupported, required bool autoExposureLockingSupported, required bool autoWhiteBalanceLockingSupported, required bool flashSupported})
constructor for the class.
Cameras.fromJson(String source)
fromJson is the method to convert the json to class.
factory
Cameras.fromMap(Map<String, dynamic> map)
fromMap is the method to convert the map to class.
factory

Properties

autoExposureLockingSupported bool
autoExposureLockingSupported is the flag to check if auto exposure locking is supported or not.
getter/setter pair
autoWhiteBalanceLockingSupported bool
autoWhiteBalanceLockingSupported is the flag to check if auto white balance locking is supported or not.
getter/setter pair
flashSupported bool
flashSupported is the flag to check if flash is supported or not.
getter/setter pair
focalLength String
focalLength is the focal length of the camera.
getter/setter pair
focusModes List<String>
focusModes is the supported list of focus modes of the camera.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
name String
name is the name of the camera i.e 0 for front and 1 for back.
getter/setter pair
orientation String
orientation is the orientation of the camera.
getter/setter pair
resolution String
resolution is the resolution of the camera in MP.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smoothZoomSupported bool
smoothZoomSupported is the flag to check if smooth zoom is supported or not.
getter/setter pair
videoResolution String
videoResolution is the video resolution of the camera in MP.
getter/setter pair
videoSnapshotSupported bool
videoSnapshotSupported is the flag to check if video snapshot is supported or not.
getter/setter pair
videoStabilizationSupported bool
videoStabilizationSupported is the flag to check if video stabilization is supported or not.
getter/setter pair
zoomSupported bool
zoomSupported is the flag to check if zoom is supported or not.
getter/setter pair

Methods

copyWith({String? name, String? resolution, String? videoResolution, String? orientation, String? focalLength, List<String>? focusModes, bool? videoSnapshotSupported, bool? videoStabilizationSupported, bool? zoomSupported, bool? smoothZoomSupported, bool? autoExposureLockingSupported, bool? autoWhiteBalanceLockingSupported, bool? flashSupported}) Cameras
copyWith is the method to copy the class.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toJson is the method to convert the class to json.
toMap() Map<String, dynamic>
toMap is the method to convert the class to map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override