getEdgeValues static method

EdgeValues getEdgeValues(
  1. EdgeValue? edgeValue,
  2. BoxConstraints constraints
)

Implementation

static EdgeValues getEdgeValues(EdgeValue? edgeValue, BoxConstraints constraints) {
  final top = getSize(edgeValue?.top ?? edgeValue?.vertical ?? edgeValue?.all, constraints.maxHeight);
  final bottom = getSize(edgeValue?.bottom ?? edgeValue?.vertical ?? edgeValue?.all, constraints.maxHeight);
  final left = getSize(edgeValue?.left ?? edgeValue?.horizontal ?? edgeValue?.all, constraints.maxWidth);
  final right = getSize(edgeValue?.right ?? edgeValue?.horizontal ?? edgeValue?.all, constraints.maxWidth);
  return EdgeValues(left: left, top: top, right: right, bottom: bottom);
}