facebookImagerViewModel class

Inheritance

Constructors

facebookImagerViewModel()

Properties

animationcontroller AnimationController
animation controller
getter/setter pair
anyObjectsBusy bool
no setterinherited
controller TransformationController
transform controller for the InteractiveViewer widget
final
disposed bool
no setterinherited
end Matrix4
getter/setter pair
hasError bool
Returns the error existence status of the ViewModel
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
hasMessage bool
Returns the message status of the ViewModel
no setterinherited
initialised bool
no setterinherited
isBusy bool
Returns the busy status of the ViewModel
no setterinherited
isscaling bool
no setter
modelError → dynamic
Returns the error status of the ViewModel
no setterinherited
modelMessage String?
Returns the message status of the ViewModel
no setterinherited
onModelReadyCalled bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
no setter
tapdetail TapDownDetails
position where the user has tapped
getter/setter pair
zoomed Matrix4
this variable contain the zoom value calculation result
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
busy(Object? object) bool
Returns the busy status for an object if it exists. Returns false if not present
inherited
clearErrors() → void
Clears all the errors
inherited
clearMessages() → void
inherited
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).
inherited
error(Object object) → dynamic
inherited
hasErrorForKey(Object key) bool
Returns a boolean that indicates if the ViewModel has an error for the key
inherited
hasMessageForKey(Object key) bool
Returns a boolean that indicates if the ViewModel has an message for the key
inherited
init() → void
initialise the animation controller
message(Object object) String?
Returns the message for an object if it exists. Returns null if not present
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onFutureError(dynamic error, Object? key) → void
Function that is called when a future throws an error
inherited
popRouteName(BuildContext context) Future<bool>
same for other apps if the user is already zooming on the image and he press the system back button the screen will not close but the image will be resized to the original size a
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
returnToPreviousPage(BuildContext context) Future<bool>
runBusyFuture<T>(Future<T> busyFuture, {Object? busyObject, bool throwException = false}) Future<T>
Sets the ViewModel to busy, runs the future and then sets it to not busy when complete.
inherited
runErrorFuture<T>(Future<T> future, {Object? key, bool throwException = false}) Future<T>
inherited
setBoxFit(double scale) → void
this method is called to update Boxfit value
setBusy(bool value) → void
Marks the ViewModel as busy and calls notify listeners
inherited
setBusyForObject(Object? object, bool value) → void
Sets the busy state for the object equal to the value passed in and notifies Listeners If you're using a primitive type the value SHOULD NOT BE CHANGED, since Hashcode uses == value
inherited
setError(dynamic error) → void
Sets the error for the ViewModel
inherited
setErrorForObject(Object object, dynamic value) → void
Sets the error state for the object equal to the value passed in and notifies Listeners If you're using a primitive type the value SHOULD NOT BE CHANGED, since Hashcode uses == value
inherited
setInitialised(bool value) → void
Sets the initialised value for the ViewModel to true. This is called after the first initialise special ViewModel call
inherited
setMessage(String? message) → void
Sets the message for the ViewModel
inherited
setMessageForObject(Object object, String? value) → void
Sets the message for the object equal to the value passed in and notifies Listeners If you're using a primitive type the value SHOULD NOT BE CHANGED, since Hashcode uses == value
inherited
setOnModelReadyCalled(bool value) → void
Sets the onModelReadyCalled value to true. This is called after this first onModelReady call
inherited
setupStream<T>(Stream<T> stream, {dynamic onData, dynamic onSubscribed, dynamic onError, dynamic onCancel, dynamic transformData}) → StreamData
inherited
skeletonData<T>({required T? realData, required T busyData, Object? busyKey}) → T
returns real data passed if neither the model is busy nor the object passed is busy
inherited
tapLocation(TapDownDetails detail) → void
this methode is called to get position where the user has tapped it take TapDownDetails as a parameter
toString() String
A string representation of this object.
inherited
userScaleState() → void
this methode is used to indicate if the user is currently zooming on the image
userStartZooming() → void
when this methode is called if the user is not zooming in it zoom on the position where the user has tapped on else it show the image to the original size also it update scaling state

Operators

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