fileGet method

void fileGet(
  1. String inner_path, {
  2. bool required = true,
  3. String format = 'text',
  4. int timeout = 300,
  5. MessageCallback? callback,
})

Implementation

void fileGet(
  String inner_path, {
  bool required = true,
  String format = 'text',
  int timeout = 300,
  MessageCallback? callback,
}) {
  ZeroNet.instance.cmd(
    ZeroNetCmd.fileGet,
    params: {
      'inner_path': inner_path,
      'required': required,
      'format': format,
      'timeout': timeout,
    },
    callback: callback ?? onMessage,
  );
}