ObjectLiteral class

The annotation for object literal constructors.

Use this on an external constructor for an interop inline class that only has named args in order to create object literals performantly. The resulting object literal will use the parameter names as keys and the provided arguments as the values.

Note that object literal constructors ignore the default values of parameters and only include the arguments you provide in the invocation of the constructor. This is similar to the @anonymous annotation in package:js.

Constructors

ObjectLiteral()
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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