NonJsonArgument class

One argument, or a part of one, that JSON cannot carry: a function, a symbol, a bigint, NaN, Infinity, or a structure that contains itself.

undefined is not one of them — it crosses as null, and an object property holding it is omitted, as JSON.stringify does.

Constructors

NonJsonArgument(List<Object> path, String kind)
const
NonJsonArgument.fromWire(Object? raw)
Reads the bridge's wire form, {path: [0, "a", 1], kind: "function"}.
factory

Properties

argumentIndex → int
The argument index, or -1 when the path is empty.
no setter
hashCode → int
The hash code for this object.
no setterinherited
kind → String
function · symbol · bigint · NaN · Infinity · -Infinity · cycle.
final
path → List<Object>
Where it sits: the argument index first, then keys and indexes into it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
where → String
1.items.0 style, for messages.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

listFromWire(Object? raw) → List<NonJsonArgument>