We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ad428 commit 3bfa7e7Copy full SHA for 3bfa7e7
.vscode/ml-flutter.code-snippets
@@ -0,0 +1,22 @@
1
+{
2
+ "Freezed Class": {
3
+ "prefix": "freezed",
4
+ "body": [
5
+ "import 'package:freezed_annotation/freezed_annotation.dart';",
6
+ "",
7
+ "part '${1:file}.freezed.dart';",
8
+ "part '${1:file}.g.dart';",
9
10
+ "@freezed",
11
+ "class ${2:ClassName} with _$${2:ClassName} {",
12
+ " const factory ${2:ClassName}({",
13
+ " required ${0:param},",
14
+ " }) = _${2:ClassName};",
15
16
+ " factory ${2:ClassName}.fromJson(Map<String, dynamic> json) =>",
17
+ " _$${2:ClassName}FromJson(json);",
18
+ "}"
19
+ ],
20
+ "description": "Creates basement for a freezed class."
21
+ },
22
+}
0 commit comments