Jak zdefiniować fragment fragmentu nazwy klasy jako nazwy pliku w DART: FUTR

${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}

// Example : Snippet of StatefulWidget


"Custom StatefulWidget": {
		"prefix": "bstful",
        "scope": "dart",
		"body": [
			"import 'package:flutter/material.dart';",
			"",
			"class ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/} extends StatefulWidget {",
			"  const ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}({Key? key}) : super(key: key);",
			"",
			"  @override",
			"  State<${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}> createState() => _${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}State();",
			"}",
			"",
			"class _${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}State extends State<${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}> {",
			"  @override",
			"  Widget build(BuildContext context) {",
			"    return $1($0);",
			"  }",
			"}"
		],
		"description": "Custom StatefulWidget"
	},
Sore Sardine