IfOr class
If header makes requests conditional based on state lists, tokens and ETags. The request succeeds only if at least one condition is met; otherwise, it fails with a 412 status. It also indicates that the client has submitted and is aware of the state token, with semantics depending on its type (e.g., lock tokens).
see https://datatracker.ietf.org/doc/html/rfc4918#section-10.4
Example(https://datatracker.ietf.org/doc/html/rfc4918#section-10.4.6):
// (<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2> ["I am an ETag"])
// (["I am another ETag"])
IfOr.notag([
  IfAnd.notag([
    IfCondition.token(
        Uri.parse("urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2")),
    IfCondition.etag('"I am an ETag"')
  ]),
  IfAnd.notag([IfCondition.etag('"I am another ETag"')])
]);
Constructors
- 
          IfOr.notag(List<IfAnd> list)
- 
          
            const
- 
          IfOr.tagged(List<IfAnd> list)
- 
          
            const
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  override
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited