DragFlipperState class
- Inheritance
-
- Object
- State<
DragFlipper> - DragFlipperState
- Mixed-in types
Constructors
Properties
- animationController ↔ AnimationController
-
AnimationController to control the animation of the flipper after it is dragged.
getter/setter pair
-
animationHorizontal
↔ Animation<
double> -
Controls and returns double value of animation.
getter/setter pair
-
animationVertical
↔ Animation<
double> -
Controls and returns double value of animation.
getter/setter pair
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
- dragHorizontal ↔ double
-
A double variable that stores the current drag value of the flipper along the horizontal and vertical axis.
getter/setter pair
- dragVertical ↔ double
-
A double variable that stores the current drag value of the flipper along the horizontal and vertical axis.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFront ↔ bool
-
isFront is a boolean variable that indicates whether the front side of the flipper is
currently being displayed.
getter/setter pair
- isFrontStart ↔ bool
-
isFrontStart is a boolean variable that indicates whether the front side of
the flipper was displayed at the start of the drag gesture. Used for inverting side if
velocity>100
getter/setter pair - isInverted ↔ bool
-
isInverted is a boolean variable that indicates whether the current viewport shows the flipper in
inverted or vertically flipped view.
getter/setter pair
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- onPanEnd ↔ void Function(DragEndDetails)?
-
A function that is called when the drag gesture is ended.
getter/setter pair
- onPanUpdate ↔ void Function(DragUpdateDetails)?
-
A function that is called when the drag gesture is updated.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transform ↔ Matrix4
-
transform is used to store the kind of transform needed for the Flipper. Value to be added inside build.
getter/setter pair
- widget → DragFlipper
-
The current configuration.
no setterinherited
Methods
-
activate(
) → void -
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
bothDragEnd(
DragEndDetails details) → void -
Function for onPanEnd when the
dragAxis
is DragAxis.both. -
bothDragUpdate(
DragUpdateDetails details) → void -
Function for onPanUpdate when the
dragAxis
is DragAxis.both. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createTicker(
TickerCallback onTick) → Ticker -
Creates a ticker with the given callback.
inherited
-
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant DragFlipper oldWidget) → void -
Called whenever the widget configuration changes.
override
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
override
-
findSide(
) → void -
The findSide method is a helper function used to determine which side of the DragFlipper is
logically to be displayed. It uses the current dragHorizontal and dragVertical values, as well as
the
dragAxis
property to determine whether thefront
orback
side of the DragFlipper is to be displayed. -
getWidth(
) → dynamic - For finding width for shadow.
-
horizontalDragEnd(
DragEndDetails details) → void -
Function for onPanEnd when the
dragAxis
is DragAxis.horizontal. -
horizontalDragUpdate(
DragUpdateDetails details) → void -
Function for onPanUpdate when the
dragAxis
is DragAxis.horizontal. -
initState(
) → void -
Called when this object is inserted into the tree.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
verticalDragEnd(
DragEndDetails details) → void -
Function for onPanEnd when the
dragAxis
is DragAxis.vertical. -
verticalDragUpdate(
DragUpdateDetails details) → void -
Function for onPanUpdate when the
dragAxis
is DragAxis.vertical.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited