fileGetFuture method
Return: The content of the file.
Implementation
Future<MessageOrError> fileGetFuture(
String innerPath, {
bool required_ = true,
String format = 'text',
int timeout = 300,
int priority = 6,
}) async {
var resultStr = await ZeroNet.instance.cmdFuture(
ZeroNetCmd.fileGet,
params: {
'inner_path': innerPath,
'required': required_,
'format': format,
'timeout': timeout,
'priority': priority,
},
);
return resultStr.toMsgOrErr;
}