CoreTool class Objects

{@image } A set of objects that makes a 'tool'. Within Astra, we use this to develop user flows for collecting incident log information, to build mental health exercises, or to add a contact. A CoreTool can be any sort of flow or resource for the end user.

Constructors

CoreTool({required String toolName, required String toolDescription, required Map<String, IconData> toolDetails, required IconData toolIcon, required Map<String, VoidCallback> nextSteps, List<ToolCardTemplate>? toolCards})

Properties

hashCode int
The hash code for this object.
no setterinherited
nextSteps Map<String, VoidCallback>
A map of a string (which describes action to the user), and a corresponding VoidCallback which completes that action if the item is pressed that will be shown at the end of a tool flow.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolCards List<ToolCardTemplate>?
The list of tool cards that you use within the flow of a Core Tool This allows Aureus to auto-generate a flow for you, and to carry the template data from usage to summary.
getter/setter pair
toolDescription String
Description of your tool to be shown in ToolDetailView
final
toolDetails Map<String, IconData>
Information & Icons to represent important information about your tool. To be used in ToolDetailView.
final
toolIcon IconData
Specific icon for your tool.
final
toolName String
The name of your tool
final

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