addData method

void addData(
  1. String key,
  2. Object? value
)

This method is used to add data to the request.

Helper function to pass information between Hooks and Routes.

Implementation

void addData(String key, Object? value) {
  _data[key] = value;
}