PeekLimits class final

How much Peek keeps.

Annotations

Constructors

PeekLimits({int maxEntries = 1000, int maxBodyBytes = 1024 * 1024, int maxPinned = 50})
Creates limits; the defaults suit a debug build of a typical app.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
maxBodyBytes → int
The most bytes of a body Peek keeps; the rest is cut off and the body marked as truncated. Zero keeps sizes but no content.
final
maxEntries → int
The most entries the store holds before evicting old ones.
final
maxPinned → int
The most entries a user can pin. Pinned entries survive eviction, so this keeps the store from filling up with them.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? maxEntries, int? maxBodyBytes, int? maxPinned}) → PeekLimits
A copy with the given fields replaced.
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.
override