AI-Narwhal 4 Feature Drop | 2025.1.4 <debuggerx@debuggerx-PC Update templates.xml Create Flutter generator snippets.xml
This commit is contained in:
@@ -118,6 +118,10 @@
|
|||||||
<option name="groupName" value="Shell Script Hidden" />
|
<option name="groupName" value="Shell Script Hidden" />
|
||||||
<option name="key" value="shell_command exists" />
|
<option name="key" value="shell_command exists" />
|
||||||
</TemplateKey>
|
</TemplateKey>
|
||||||
|
<TemplateKey>
|
||||||
|
<option name="groupName" value="Kotlin" />
|
||||||
|
<option name="key" value="object" />
|
||||||
|
</TemplateKey>
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<templateSet group="Flutter generator snippets">
|
||||||
|
<template name="freezedAbstract" value="import 'package:freezed_annotation/freezed_annotation.dart'; part '$fileName$.freezed.dart'; @freezed abstract class $ClassName$ with _$$$ClassName$ { const factory $ClassName$({ $Params$, }) = _$ClassName$; $code$ }" description="Create feezed template" toReformat="false" toShortenFQNames="true">
|
||||||
|
<variable name="fileName" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
|
||||||
|
<variable name="ClassName" expression="dartClassName()" defaultValue="" alwaysStopAt="true" />
|
||||||
|
<variable name="Params" expression="dartSuggestVariableName()" defaultValue="" alwaysStopAt="true" />
|
||||||
|
<variable name="code" expression="" defaultValue="" alwaysStopAt="true" />
|
||||||
|
<context />
|
||||||
|
</template>
|
||||||
|
</templateSet>
|
||||||
Reference in New Issue
Block a user