$new static method

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

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $MaterialPageRoute.wrap(MaterialPageRoute(
    builder: (context) => (args[0] as EvalCallable)
        .call(runtime, null, [$BuildContext.wrap(context)])!.$value,
    settings: args[1]?.$value,
    maintainState: args[2]?.$value ?? true,
    fullscreenDialog: args[3]?.$value ?? false,
    allowSnapshotting: args[4]?.$value ?? true,
    barrierDismissible: args[5]?.$value ?? false,
  ));
}