copyWith method
HiddenTheme
copyWith({
- ValueGetter<
Axis?> ? direction, - ValueGetter<
Duration?> ? duration, - ValueGetter<
Curve?> ? curve, - ValueGetter<
bool?> ? reverse, - ValueGetter<
bool?> ? keepCrossAxisSize, - ValueGetter<
bool?> ? keepMainAxisSize,
Returns a copy of this theme with the given fields replaced.
Implementation
HiddenTheme copyWith({
ValueGetter<Axis?>? direction,
ValueGetter<Duration?>? duration,
ValueGetter<Curve?>? curve,
ValueGetter<bool?>? reverse,
ValueGetter<bool?>? keepCrossAxisSize,
ValueGetter<bool?>? keepMainAxisSize,
}) {
return HiddenTheme(
direction: direction == null ? this.direction : direction(),
duration: duration == null ? this.duration : duration(),
curve: curve == null ? this.curve : curve(),
reverse: reverse == null ? this.reverse : reverse(),
keepCrossAxisSize: keepCrossAxisSize == null
? this.keepCrossAxisSize
: keepCrossAxisSize(),
keepMainAxisSize: keepMainAxisSize == null
? this.keepMainAxisSize
: keepMainAxisSize(),
);
}