DataContext constructor

DataContext(
  1. String? origin
)

Implementation

DataContext(String? origin) {
  resources = DataContextResources(
    data: <String, String>{'origin': origin ?? ''},
    onSend: onSendData,
    onReceive: onReceiveData,
    headers: <String, String>{},
  );
  DataContextGlobalResources.context = this;
}