$new static method

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

Wrapper for MethodChannel.new using args

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $MethodChannel.wrap(MethodChannel(
    args[0]!.$value,
    args[1]?.$value ?? const StandardMethodCodec(),
    args[2]?.$value,
  ));
}