PhotoViewOptions class

A helper class that contains all reusable options of ReloadablePhotoView.

Implementers

Constructors

PhotoViewOptions({dynamic initialScale, dynamic minScale, dynamic maxScale, BoxDecoration? backgroundDecoration, FilterQuality? filterQuality, PhotoViewImageTapDownCallback? onTapDown, PhotoViewImageTapUpCallback? onTapUp, LoadingPlaceholderBuilder? loadingBuilder, ErrorPlaceholderBuilder? errorBuilder, Alignment? basePosition, PhotoViewControllerBase<PhotoViewControllerValue>? controller, Size? customSize, bool? disableGestures, bool? enablePanAlways, bool? enableRotation, bool? gaplessPlayback, HitTestBehavior? gestureDetectorBehavior, PhotoViewHeroAttributes? heroAttributes, PhotoViewImageScaleEndCallback? onScaleEnd, PhotoViewScaleStateController? scaleStateController, ValueChanged<PhotoViewScaleState>? scaleStateChangedCallback, ScaleStateCycle? scaleStateCycle, bool? tightMode, bool? wantKeepAlive})
const

Properties

backgroundDecoration BoxDecoration?
final
basePosition Alignment?
final
controller → PhotoViewControllerBase<PhotoViewControllerValue>?
final
customSize Size?
final
disableGestures bool?
final
enablePanAlways bool?
final
enableRotation bool?
final
errorBuilder ErrorPlaceholderBuilder?
final
filterQuality FilterQuality?
final
gaplessPlayback bool?
final
gestureDetectorBehavior HitTestBehavior?
final
hashCode int
The hash code for this object.
no setterinherited
heroAttributes → PhotoViewHeroAttributes?
final
initialScale → dynamic
final
loadingBuilder LoadingPlaceholderBuilder?
final
maxScale → dynamic
final
minScale → dynamic
final
onScaleEnd → PhotoViewImageScaleEndCallback?
final
onTapDown → PhotoViewImageTapDownCallback?
final
onTapUp → PhotoViewImageTapUpCallback?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleStateChangedCallback ValueChanged<PhotoViewScaleState>?
final
scaleStateController → PhotoViewScaleStateController?
final
scaleStateCycle → ScaleStateCycle?
final
tightMode bool?
final
wantKeepAlive bool?
final

Methods

copyWith({dynamic initialScale, dynamic minScale, dynamic maxScale, BoxDecoration? backgroundDecoration, FilterQuality? filterQuality, PhotoViewImageTapDownCallback? onTapDown, PhotoViewImageTapUpCallback? onTapUp, LoadingPlaceholderBuilder? loadingBuilder, ErrorPlaceholderBuilder? errorBuilder, Alignment? basePosition, PhotoViewControllerBase<PhotoViewControllerValue>? controller, Size? customSize, bool? disableGestures, bool? enablePanAlways, bool? enableRotation, bool? gaplessPlayback, HitTestBehavior? gestureDetectorBehavior, PhotoViewHeroAttributes? heroAttributes, PhotoViewImageScaleEndCallback? onScaleEnd, PhotoViewScaleStateController? scaleStateController, ValueChanged<PhotoViewScaleState>? scaleStateChangedCallback, ScaleStateCycle? scaleStateCycle, bool? tightMode, bool? wantKeepAlive}) PhotoViewOptions
Creates a copy of this value but with 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

Static Methods

merge(PhotoViewOptions options, PhotoViewOptions? fallback) PhotoViewOptions
Creates a new value that is a combination of given value and fallback value.