Skip to content

Commit 5d0bbdb

Browse files
committed
Add built_value for dart
From https://github.com/google/built_value.dart#generating-boilerplate-for-value-types abstract class $CLASS_NAME$ implements Built<$CLASS_NAME$, $CLASS_NAME$Builder> { $CLASS_NAME$._(); factory $CLASS_NAME$([void Function($CLASS_NAME$Builder) updates]) = _$$$CLASS_NAME$; }
1 parent 612be83 commit 5d0bbdb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

snippets/dart-mode/builtvalue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- mode: snippet -*-
2+
# name: built_value
3+
# key: blt
4+
# group: dart
5+
# --
6+
abstract class ${1:Name} implements Built<$1, $1Builder> {
7+
factory $1([void Function($1Builder) updates]) = _$$1;
8+
$1._();
9+
10+
$0
11+
}

snippets/dart-mode/dispose

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- mode: snippet -*-
22
# name: dispose
3-
# key: is
3+
# key: dis
44
# group: flutter
55
# --
66
@override

0 commit comments

Comments
 (0)