checkMergeType method

Type? checkMergeType(
  1. BoxBorderDto other
)

Implementation

Type? checkMergeType(BoxBorderDto other) {
  if (_hasLeftOrRight && !other._hasStartOrEnd) {
    return Border;
  }
  if (_hasStartOrEnd && !other._hasLeftOrRight) {
    return BorderDirectional;
  }

  return null;
}