copyWith method
override
Creates a copy of this EdgeInsets but with the given fields replaced with the new values.
Implementation
@override
DeclarativeEdgeInsets copyWith({
double? left,
double? top,
double? right,
double? bottom,
}) {
return DeclarativeEdgeInsets(
left: left ?? this.left,
top: top ?? this.top,
right: right ?? this.right,
bottom: bottom ?? this.bottom,
);
}