copyWith method

  1. @override
StackSpec copyWith({
  1. AlignmentGeometry? alignment,
  2. StackFit? fit,
  3. TextDirection? textDirection,
  4. Clip? clipBehavior,
  5. AnimatedData? animated,
})
override

Creates a copy of this spec with the given fields replaced by the non-null parameter values.

Implementation

@override
StackSpec copyWith({
  AlignmentGeometry? alignment,
  StackFit? fit,
  TextDirection? textDirection,
  Clip? clipBehavior,
  AnimatedData? animated,
}) {
  return StackSpec(
    alignment: alignment ?? this.alignment,
    fit: fit ?? this.fit,
    textDirection: textDirection ?? this.textDirection,
    clipBehavior: clipBehavior ?? this.clipBehavior,
    animated: animated ?? this.animated,
  );
}