flipUp method
void
flipUp()
Flips the Flipper to the Top for one time. Only works with DragAxis.vertical and DragAxis.both.
Implementation
void flipUp(){
assert(_state != null,
'Controller not attached to any Flipper. Seems that you forget to attach controller to Flipper.');
assert((dragAxis!=DragAxis.horizontal),
'Cannot call flipUp() when the dragAxis is set to DragAxis.horizontal!'
'\nUse DragAxis.vertical or DragAxis.both');
///For DragAxis.both
///Initialising the unused animation with the current value.
if(dragAxis==DragAxis.both) {
_state!.animationHorizontal= AlwaysStoppedAnimation<double>(_state!.dragHorizontal);
}
_state!.animationVertical= Tween<double>(
begin: _state!.isInverted?180:360,
end: _state!.isInverted?0:180,
).animate(_state!.animationController);
_state!.animationController.forward(from: 0.0);
}