OpenedFile constructor

OpenedFile({
  1. required int openRequestId,
  2. required String filePath,
  3. required OpenFileMode mode,
})

Implementation

OpenedFile({
  /// A request ID to be be used by consecutive read/write and close requests.
  required int openRequestId,

  /// The path of the opened file.
  required String filePath,

  /// Whether the file was opened for reading or writing.
  required OpenFileMode mode,
}) : _wrapped = $js.OpenedFile(
        openRequestId: openRequestId,
        filePath: filePath,
        mode: mode.toJS,
      );