TransitionEasy constructor
TransitionEasy({
- required Widget child,
- required CustomTransitionModule customTransitionModule,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.linear,
Creates a custom transition module for handling page route transitions.
The child
widget represents the content that will be shown during the transition.
The customTransitionModule
specifies the type of transition animation to use.
The duration
sets the total duration of the transition animation. Default is 300 milliseconds.
The curve
defines the easing curve for the transition animation. Default is Curves.linear.
Implementation
TransitionEasy({
required this.child,
required this.customTransitionModule,
this.duration = const Duration(milliseconds: 300),
this.curve = Curves.linear,
});