operator + method

SizedBox operator +(
  1. SizedBox other
)

Implementation

SizedBox operator +(SizedBox other) {
  if (height != null) return SizedBox(height: height! + other.height!);

  if (width != null) return SizedBox(width: width! + other.width!);

  return const SizedBox.shrink();
}