copyWith method

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

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

Implementation

@override
PaddingModifier copyWith({EdgeInsetsGeometry? padding}) {
  return PaddingModifier(padding ?? this.padding);
}