ImCallFloatingWindowManager class

Properties

borderRadius ↔ double
小窗口的圆角度
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isShowing → bool
no setter
onCreateRestorePage ↔ Widget Function()?
恢复时如何创建新页面(由 Mixin 注入)
getter/setter pair
position ↔ Offset
小窗口的位置
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionInitialized → bool
no setter
size ↔ Size
小窗口的大小
getter/setter pair
snapEdgeThreshold ↔ double?
触发吸边的距离阈值(单位:像素) 如果为 null,则保持原有逻辑(松手时总是根据中心点吸边) 如果不为 null,只有距离边缘小于该阈值时才触发吸边,否则停留在原地
getter/setter pair

Methods

bindEventStream(Stream? stream, void handler(dynamic)) → Object?
dismiss() → void
关闭小窗 + 触发会话清理
finishSession({VoidCallback? popPageIfAlive}) → void
统一结束:
markSessionInitialized() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() → void
registerSessionDispose(VoidCallback cb) → void
resetSession() → void
restore() → void
恢复大屏:关小窗 + 用配置的 navigatorKey push 新页面
showRaw({required WidgetBuilder contentBuilder}) → void
打开悬浮窗
toString() → String
A string representation of this object.
inherited
unbindEventStream(Object token) → void

Operators

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

Static Properties

instance → ImCallFloatingWindowManager
final
内部使用:供同插件的其他 Manager 复用 navigatorKey
no setter
rootContext → BuildContext?
便捷获取当前根 context(供 push 页面用)
no setter
rootOverlay → OverlayState?
便捷获取当前根 Overlay
no setter

Static Methods

configure({required GlobalKey<NavigatorState> navigatorKey}) → void
项目启动时调用一次