makeMeasureResult static method

int makeMeasureResult(
  1. double width,
  2. double height
)

Implementation

static int makeMeasureResult(double width, double height) {
  var w = width > 0 ? width : 0.0;
  var h = height > 0 ? height : 0.0;
  return makeInt(w.toInt(), h.toInt());
}