copyWith method

FSStaggeredSlideIn copyWith({
  1. Key? key,
  2. List<Widget>? children,
  3. FSSlideDirection? direction,
  4. Duration? duration,
  5. Duration? staggerDelay,
  6. Curve? curve,
  7. bool? autoPlay,
  8. double? offsetFraction,
  9. bool? maintainState,
  10. String? semanticLabel,
  11. bool? respectSystemPreferences,
})

Create a copy with modified parameters

Implementation

FSStaggeredSlideIn copyWith({
  Key? key,
  List<Widget>? children,
  FSSlideDirection? direction,
  Duration? duration,
  Duration? staggerDelay,
  Curve? curve,
  bool? autoPlay,
  double? offsetFraction,
  bool? maintainState,
  String? semanticLabel,
  bool? respectSystemPreferences,
}) {
  return FSStaggeredSlideIn(
    key: key ?? this.key,
    children: children ?? this.children,
    direction: direction ?? this.direction,
    duration: duration ?? this.duration,
    staggerDelay: staggerDelay ?? this.staggerDelay,
    curve: curve ?? this.curve,
    autoPlay: autoPlay ?? this.autoPlay,
    offsetFraction: offsetFraction ?? this.offsetFraction,
    maintainState: maintainState ?? this.maintainState,
    semanticLabel: semanticLabel ?? this.semanticLabel,
    respectSystemPreferences:
        respectSystemPreferences ?? this.respectSystemPreferences,
  );
}