copyWith method
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
PaddingSpec copyWith({EdgeInsetsGeometry? padding}) {
return PaddingSpec(padding ?? this.padding);
}
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
@override
PaddingSpec copyWith({EdgeInsetsGeometry? padding}) {
return PaddingSpec(padding ?? this.padding);
}