call method

dynamic call(
  1. String type,
  2. Map<String, dynamic> data
)

Implementation

call(String type, Map<String, dynamic> data) {
  var payload = payloadBuilder?.call(type, data) ??
      StarXpandCallbackPayload(type, data) as T;
  callback(payload);
}