RequestQueue class

请求队列管理器

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEnabled → bool
检查是否启用
no setter
isPaused → bool
检查是否暂停
no setter
maxConcurrent → int
获取最大并发数
no setter
queueStream → Stream<QueueStats>
队列变化流
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelByTag(String tag) → int
取消指定标签的所有请求
clear() → void
清空队列
disable() → void
禁用队列管理
dispose() → void
释放资源
enable({int maxConcurrent = 6}) → void
启用队列管理
enqueue<T>(Future<T> executor(), {RequestPriority priority = RequestPriority.normal, String? tag}) → Future<T>
添加请求到队列
getStats() → QueueStats
获取统计信息
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
暂停队列
resume() → void
恢复队列
setMaxConcurrent(int max) → void
设置最大并发数
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → RequestQueue
单例实例
final