copyWith method

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

Creates a copy of this EdgeInsetsDirectional but with the given fields replaced with the new values.

Implementation

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