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$;
}
This commit is contained in:
Brady Trainor 2020-03-05 15:22:34 -08:00
parent 612be838d2
commit 5d0bbdb9f5
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: built_value
# key: blt
# group: dart
# --
abstract class ${1:Name} implements Built<$1, $1Builder> {
factory $1([void Function($1Builder) updates]) = _$$1;
$1._();
$0
}

View File

@ -1,6 +1,6 @@
# -*- mode: snippet -*-
# name: dispose
# key: is
# key: dis
# group: flutter
# --
@override