StreamRevision class
A class referring to the expected stream revision when writing to a stream.
- Implemented types
Constructors
- StreamRevision.checked(int value)
-
Constructs a new StreamRevision from given value.
factory
- StreamRevision.fromInt64(Int64 value)
-
Creates a new StreamRevision from the given
Int64
.factory - StreamRevision.fromPosition(StreamPosition position)
-
Creates a new StreamRevision from the given StreamPosition.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Int64
-
A StreamRevision value
final
Methods
-
compareTo(
StreamRevision other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toInt(
) → int - Get value as int
-
toPosition(
) → StreamPosition - Get StreamPosition from this StreamRevision
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator +(
int delta) → StreamRevision -
operator -(
int delta) → StreamRevision -
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
- empty ↔ StreamRevision
-
Represents an empty StreamRevision, i.e., when a stream exist but contains no events.
getter/setter pair
- none ↔ StreamRevision
-
Represents no StreamRevision, i.e., when a stream does not exist.
getter/setter pair