ScrollTool class
Properties
acceptsAllApps
→ bool
Whether app:"*" means every attached app and reaches handle unrouted.
no setter inherited
definition
→ Tool
no setter override
hashCode
→ int
The hash code for this object.
no setter inherited
registeredDefinition
→ Tool
definition plus the shared app routing arg — what the server registers.
no setter inherited
routesByApp
→ bool
Tools that give app their own meaning (attach) opt out of routing.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
callCeiling (GlintSession session , Map <String , Object ? > args )
→ Duration
How long a call with args may run before glint cancels it and answers toolTimeout; tools that wait on request raise it.
override
changesDevice (Map <String , Object ? > args )
→ bool
Whether a call with args acts on the app or its device, which an app attached with observe:true refuses; true unless a tool says it only reads.
override
handle (GlintSession session , CallToolRequest request )
→ Future <StructuredResponse >
override
invoke (GlintSession session , CallToolRequest request )
→ Future <CallToolResult >
Runs handle under a time ceiling and a progress heartbeat; a call that outlives its ceiling is cancelled and answered with toolTimeout.
inherited
logCall (GlintSession session , CallToolRequest request , StructuredResponse response , DateTime start , {AppSession ? app , ExploreCall? call , Object ? failure , CallMark ? since , int ? batchStep , Map <String , Object ? > helpers = const {} })
→ void
Records one call in the action log + usage recorder. Public so a
composite tool (batch) can log each step under its own tool name.
inherited
noFrameResponse (GlintSession session , InspectorReadError e )
→ Future <StructuredResponse >
The widget tree came back empty: a system surface over an app that is not resumed, or no first frame yet.
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observeRefusal (AppSession ? app , Map <String , Object ? > args )
→ StructuredResponse ?
The refusal for a call on an observe-only app that would change it; null when the call may run.
inherited
perform (GlintSession session , CallToolRequest request , {ScrollTarget ? target })
→ Future <StructuredResponse >
handle , optionally driving target and reporting sideEffect in the data when the route or a watched PageView page changed.
toString ()
→ String
A string representation of this object.
inherited
Static Methods
mergeScrollSignal (String treeCategory , double ? movedPx )
→ ({String category , bool ? changed } )
Merge the tree-hash change category with physical anchor movement. A
fully-realized scrollable's tree is identical at every offset, so the
hash reports 'nothing' even when content moved — promote that to
'scrolled' when the anchor physically shifted.
scrollSignalData (PostActionState post , ({String category , bool ? changed } ) merged , double ? movedPx )
→ Map <String , Object ? >
The reply data for a scroll: post with the merged signal, dropping unknownReason once movement decided changed.