onDismissible method
Dismissible
onDismissible({
- Widget? child,
- Widget? background,
- Widget? secondaryBackground,
- VoidCallback? resize,
- DismissDirectionCallback? dismissed,
- DismissDirection? direction,
- Duration? resizeDuration,
- Map<
DismissDirection, double> ? dismissThresholds, - Duration? movementDuration,
- double? crossAxisEndOffset,
Implementation
Dismissible onDismissible({
Widget? child,
Widget? background,
Widget? secondaryBackground,
VoidCallback? resize,
DismissDirectionCallback? dismissed,
DismissDirection? direction,
Duration? resizeDuration,
Map<DismissDirection, double>? dismissThresholds,
Duration? movementDuration,
double? crossAxisEndOffset,
}) {
this.child = child ?? this.child;
this.background = background ?? this.background;
this.secondaryBackground = secondaryBackground ?? this.secondaryBackground;
this.resize = resize ?? this.resize;
this.dismissed = dismissed ?? this.dismissed;
this.direction = direction ?? this.direction;
this.resizeDuration = resizeDuration ?? this.resizeDuration;
this.dismissThresholds = dismissThresholds ?? this.dismissThresholds;
this.movementDuration = movementDuration ?? this.movementDuration;
this.crossAxisEndOffset = crossAxisEndOffset ?? this.crossAxisEndOffset;
return dismissible;
}