$fromPoints static method

$Value? $fromPoints(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Create a new $Rect using Rect.fromPoints from args

Implementation

static $Value? $fromPoints(
    Runtime runtime, $Value? target, List<$Value?> args) {
  return $Rect.wrap(
      Rect.fromPoints(args[0]!.$value as Offset, args[1]!.$value as Offset));
}