sitePublish method
void
sitePublish({
- String? privatekey,
- String? innerPath,
- bool sign = true,
- MessageCallback? callback,
Implementation
void sitePublish({
String? privatekey,
String? innerPath,
bool sign = true,
MessageCallback? callback,
}) {
var params = {};
if (privatekey != null) params['privatekey'] = privatekey;
if (innerPath != null) params['inner_path'] = innerPath;
params['sign'] = sign;
ZeroNet.instance.cmd(
ZeroNetCmd.sitePublish,
params: params,
callback: callback ?? onMessage,
);
}