Helper functions for generating and parsing node IDs.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
actionBlock(
String actionBlockKey) → String - Generate a node ID for an action block.
-
actionBlockKeyFromNodeId(
String nodeId) → String? - Extract the action block key from a node ID. Returns null if the node ID is not an action block node.
-
actionBlockParam(
String actionBlockKey, String paramKey) → String - Generate a node ID for an action block parameter.
-
actionBlockParamKeysFromNodeId(
String nodeId) → (String, String)? - Extract the action block and param keys from an action block param node ID. Returns (actionBlockKey, paramKey) or null if the node ID doesn't match.
-
apiCall(
String endpointKey) → String - Generate a node ID for an API call endpoint.
-
apiCallKeyFromNodeId(
String nodeId) → String? - Extract the endpoint key from an API call node ID. Returns null if the node ID is not an API call node.
-
appConstant(
String constantKey) → String - Generate a node ID for an app constant.
-
appConstantKeyFromNodeId(
String nodeId) → String? - Extract the constant key from an app constant node ID. Returns null if the node ID is not an app constant node.
-
appEvent(
String eventKey) → String - Generate a node ID for an app event.
-
appEventKeyFromNodeId(
String nodeId) → String? - Extract the event key from an app event node ID. Returns null if the node ID is not an app event node.
-
appStateVar(
String varKey) → String - Generate a node ID for a specific app state variable.
-
appStateVarKeyFromNodeId(
String nodeId) → String? - Extract the variable key from an app state variable node ID. Returns null if the node ID is not an app state variable node.
-
assetAudio(
String path) → String - Generate a node ID for an audio asset.
-
assetAudioPathFromNodeId(
String nodeId) → String? - Extract the path from an asset audio node ID. Returns null if the node ID is not an asset audio node.
-
assetFont(
String fontFamily) → String - Generate a node ID for a custom font asset.
-
assetFontNameFromNodeId(
String nodeId) → String? - Extract the font family name from an asset font node ID. Returns null if the node ID is not an asset font node.
-
assetIcon(
String iconFamily) → String - Generate a node ID for a custom icon family.
-
assetIconFamilyFromNodeId(
String nodeId) → String? - Extract the icon family name from an asset icon node ID. Returns null if the node ID is not an asset icon node.
-
assetImage(
String path) → String - Generate a node ID for an image asset.
-
assetImagePathFromNodeId(
String nodeId) → String? - Extract the path from an asset image node ID. Returns null if the node ID is not an asset image node.
-
assetLottie(
String path) → String - Generate a node ID for a Lottie animation asset.
-
assetLottiePathFromNodeId(
String nodeId) → String? - Extract the path from an asset Lottie node ID. Returns null if the node ID is not an asset Lottie node.
-
assetVideo(
String path) → String - Generate a node ID for a video asset.
-
assetVideoPathFromNodeId(
String nodeId) → String? - Extract the path from an asset video node ID. Returns null if the node ID is not an asset video node.
-
customAction(
String actionKey) → String - Generate a node ID for a custom action.
-
customActionKeyFromNodeId(
String nodeId) → String? - Extract the custom action key from a node ID. Returns null if the node ID is not a custom action node.
-
customFunction(
String functionKey) → String - Generate a node ID for a custom function.
-
customFunctionKeyFromNodeId(
String nodeId) → String? - Extract the custom function key from a node ID. Returns null if the node ID is not a custom function node.
-
customWidget(
String widgetKey) → String - Generate a node ID for a custom widget.
-
customWidgetKeyFromNodeId(
String nodeId) → String? - Extract the custom widget key from a node ID. Returns null if the node ID is not a custom widget node.
-
dataStruct(
String structKey) → String - Generate a node ID for a data struct.
-
dataStructField(
String structKey, String fieldKey) → String - Generate a node ID for a data struct field.
-
dataStructFieldKeysFromNodeId(
String nodeId) → (String, String)? - Extract the struct and field keys from a data struct field node ID. Returns (structKey, fieldKey) or null if the node ID doesn't match.
-
dataStructKeyFromNodeId(
String nodeId) → String? - Extract the data struct key from a node ID. Returns null if the node ID is not a data struct node.
-
enumKeyFromNodeId(
String nodeId) → String? - Extract the enum key from a node ID. Returns null if the node ID is not an enum node.
-
enumType(
String enumKey) → String - Generate a node ID for an enum.
-
firestoreCollection(
String collectionKey) → String - Generate a node ID for a Firestore collection.
-
firestoreCollectionKeyFromNodeId(
String nodeId) → String? - Extract the collection key from a Firestore collection node ID. Returns null if the node ID is not a Firestore collection node.
-
isActionBlockNodeId(
String nodeId) → bool - Check if a node ID represents an action block.
-
isActionBlockParamNodeId(
String nodeId) → bool - Check if a node ID represents an action block parameter.
-
isApiCallNodeId(
String nodeId) → bool - Check if a node ID represents an API call.
-
isAppConstantNodeId(
String nodeId) → bool - Check if a node ID represents an app constant.
-
isAppEventNodeId(
String nodeId) → bool - Check if a node ID represents an app event.
-
isAppStateVarNodeId(
String nodeId) → bool - Check if a node ID represents an app state variable.
-
isAssetAudioNodeId(
String nodeId) → bool - Check if a node ID represents an audio asset.
-
isAssetFontNodeId(
String nodeId) → bool - Check if a node ID represents a custom font asset.
-
isAssetIconNodeId(
String nodeId) → bool - Check if a node ID represents a custom icon family.
-
isAssetImageNodeId(
String nodeId) → bool - Check if a node ID represents an image asset.
-
isAssetLottieNodeId(
String nodeId) → bool - Check if a node ID represents a Lottie animation asset.
-
isAssetVideoNodeId(
String nodeId) → bool - Check if a node ID represents a video asset.
-
isCustomActionNodeId(
String nodeId) → bool - Check if a node ID represents a custom action.
-
isCustomFunctionNodeId(
String nodeId) → bool - Check if a node ID represents a custom function.
-
isCustomWidgetNodeId(
String nodeId) → bool - Check if a node ID represents a custom widget.
-
isDataStructFieldNodeId(
String nodeId) → bool - Check if a node ID represents a data struct field.
-
isDataStructNodeId(
String nodeId) → bool - Check if a node ID represents a data struct.
-
isEnumNodeId(
String nodeId) → bool - Check if a node ID represents an enum.
-
isFirestoreCollectionNodeId(
String nodeId) → bool - Check if a node ID represents a Firestore collection.
-
isGlobalNodeId(
String nodeId) → bool - Check if a node ID represents a global file.
-
isGranularDependencyNodeId(
String nodeId) → bool - Check if a node ID represents any granular dependency type. This includes API calls, action blocks, custom functions, custom widgets, custom actions, data structs, enums, Firestore collections, Supabase tables, asset dependencies, and field-level dependencies (data struct fields, action block params).
-
isLibraryDependencyNodeId(
String nodeId) → bool - Check if a node ID represents a library dependency.
-
isSupabaseTableNodeId(
String nodeId) → bool - Check if a node ID represents a Supabase table.
-
isWalkthroughNodeId(
String nodeId) → bool - Check if a node ID represents a walkthrough.
-
isWidgetClassNodeId(
String nodeId) → bool - Check if a node ID represents a widget class.
-
libraryDependency(
String projectId) → String - Generate a node ID for a library dependency.
-
libraryDependencyProjectIdFromNodeId(
String nodeId) → String? - Extract the project ID from a library dependency node ID. Returns null if the node ID is not a library dependency node.
-
supabaseTable(
String tableKey) → String - Generate a node ID for a Supabase/Postgres table.
-
supabaseTableKeyFromNodeId(
String nodeId) → String? - Extract the table key from a Supabase table node ID. Returns null if the node ID is not a Supabase table node.
-
walkthrough(
String walkthroughKey) → String - Generate a node ID for a walkthrough.
-
walkthroughKeyFromNodeId(
String nodeId) → String? - Extract the walkthrough key from a walkthrough node ID. Returns null if the node ID is not a walkthrough node.
-
widgetClass(
String widgetClassKey) → String - Generate a node ID for a widget class.
-
widgetClassKeyFromNodeId(
String nodeId) → String? - Extract the widget class key from a node ID. Returns null if the node ID is not a widget class node.