CallbackParams class

An object that encapsulates the arguments passed to a callback function.

A CallbackParams object can contain both positional and named parameters. The positional parameters are stored in a list, while the named parameters are stored in a map, with the symbol as the key.

Constructors

CallbackParams([List? positional, Map<Symbol, dynamic>? named])
Creates a new CallbackParams object.

Properties

hashCode int
The hash code for this object.
no setterinherited
named Map<Symbol, dynamic>?
The map of named parameters.
getter/setter pair
positional List?
The list of positional parameters.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

parse(Object? args) CallbackParams?
Parses the arguments passed to a callback function.