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