params property

Map<Symbol, dynamic>? params
final

Optional parameters to pass to the request method.

Used with the method reference pattern. Keys should be parameter names as Symbols (e.g., #userId, #phone), and values are the parameter values.

Important: Internal callbacks (success, failure, completed) are automatically injected and take precedence over any callbacks in this map.

Example:

ZipRequest<UserInfo>(
  request: getUserAsync,
  params: {
    #userId: '123',
    #phone: '13800138000',
  },
  tag: 'user',
)

Note: The closure pattern is generally preferred over this approach.

Implementation

final Map<Symbol, dynamic>? params;