Buffers class abstract

Provides some common buffers.

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

dropping<T>([int limit = 10]) Buffer<T>
Same as fixed but Overflow will silently drop the messages.
expanding<T>([int initialSize = 10]) Buffer<T>
Like fixed but Overflow will cause the buffer to expand dynamically.
fixed<T>([int limit = 10]) Buffer<T>
New messages will be buffered up to limit. Overflow will raise an Error. Omitting a limit value will result in a limit of 10.
none<T>() Buffer<T>
No buffering, new messages will be lost if there are no pending takers.
sliding<T>([int limit = 10]) Buffer<T>
Same as fixed but Overflow will insert the new message at the end and drop the oldest message in the buffer.