AppState class
Controls the status general of the app
Constructors
- AppState({AppPages currentPage = AppPages.takePhoto, AppStatus statusCamera = AppStatus.initial, CameraController? cameraController, AppStatus statusTakePhotoPage = AppStatus.initial, File? pictureInitial, AppStatus statusCropPhoto = AppStatus.initial, Area? contourInitial, Uint8List? pictureCropped, AppStatus statusEditPhoto = AppStatus.initial, FilterType currentFilterType = FilterType.natural, AppStatus statusSavePhotoDocument = AppStatus.initial})
-
Create an state instance
const
- AppState.init()
-
Initial state
factory
Properties
- cameraController → CameraController?
-
Camera controller from Camera library
final
- contourInitial → Area?
-
Contour found with
ImageUtils.findContourPhoto
final - currentFilterType → FilterType
-
Current filter type
final
- currentPage → AppPages
-
Current page being displayed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pictureCropped → Uint8List?
-
Picture that was cropped
final
- pictureInitial → File?
-
Picture that was taken
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCamera → AppStatus
-
Status of when the cameraController is being created
final
- statusCropPhoto → AppStatus
-
Status when the photo was cropped
final
- statusEditPhoto → AppStatus
-
Status when the photo was edited
final
- statusSavePhotoDocument → AppStatus
-
Status when the photo was saved
final
- statusTakePhotoPage → AppStatus
-
Status when the photo was captured
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
copyWith(
{AppPages? currentPage, AppStatus? statusCamera, CameraController? cameraController, AppStatus? statusTakePhotoPage, File? pictureInitial, AppStatus? statusCropPhoto, Object? contourInitial = valueNull, Uint8List? pictureCropped, AppStatus? statusEditPhoto, FilterType? currentFilterType, AppStatus? statusSavePhotoDocument}) → AppState - Creates a copy of this state but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited