copyWith method

  1. @override
PaddingSpec copyWith({
  1. EdgeInsetsGeometry? padding,
})
override

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);
}