copyWith method
StackSpec
copyWith({
- AlignmentGeometry? alignment,
- StackFit? fit,
- TextDirection? textDirection,
- Clip? clipBehavior,
- 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,
);
}