addData method
Adds additional data to be passed to the frontend.
The params
parameter is a map of key-value pairs to be added to the existing data.
Implementation
AssetManager addData(Map<String, Object?> params) {
data.addAll(params);
return this;
}