$fromCenter static method

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

Create a new $Rect using Rect.fromCenter from args

Implementation

static $Value? $fromCenter(
    Runtime runtime, $Value? target, List<$Value?> args) {
  return $Rect.wrap(Rect.fromCenter(
      center: args[0]!.$value as Offset,
      width: args[1]!.$value as double,
      height: args[2]!.$value as double));
}