IndexOf constructor

IndexOf()

Implementation

IndexOf()
  : super(
      methodName: "indexOf",
      targetType: .list,
      arity: 1,
      function: (target, _, arguments) {
        return target.indexOf(arguments[0]);
      },
    );