FileEventContext.fromRequest constructor

FileEventContext.fromRequest(
  1. ServerMessage msg,
  2. Bucket bucket
)

Create a Blob Event context from a server message.

Implementation

FileEventContext.fromRequest($bp.ServerMessage msg, Bucket bucket)
    : this(
        msg.id,
        FileEventRequest(bucket.file(msg.blobEventRequest.blobEvent.key)),
        BlobEventResponse(),
      );