copyWith method

EdgeInsetsDirectional copyWith({
  1. double? start,
  2. double? end,
  3. double? top,
  4. double? bottom,
})

Implementation

EdgeInsetsDirectional copyWith({
  double? start,
  double? end,
  double? top,
  double? bottom,
}) {
  return EdgeInsetsDirectional.only(
    start: start ?? this.start,
    end: end ?? this.end,
    top: top ?? this.top,
    bottom: bottom ?? this.bottom,
  );
}