Changes

Jump to navigation Jump to search
304 bytes added ,  08:37, 22 October 2019
m
Line 10: Line 10:  
<br />
 
<br />
   −
== Built Value Android Studio Live Templates ==
+
==Built Value Android Studio Live Templates==
 
File > Settings > Editor > Live Templates
 
File > Settings > Editor > Live Templates
   −
* Abbreviation blth
+
=== Built Value Header ===
* Description Built Value Header
+
 
 +
*Abbreviation blth
 +
*Description Built Value Header
 
<syntaxhighlight lang="dart">
 
<syntaxhighlight lang="dart">
 
library $LIBRARY$;
 
library $LIBRARY$;
Line 23: Line 25:     
part '$LIBRARY$.g.dart';
 
part '$LIBRARY$.g.dart';
 +
</syntaxhighlight>
 +
 +
=== Built Value ===
 +
 +
* Abbreviation blt
 +
* Description Built Value
 +
<syntaxhighlight lang="dart">
 +
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
 +
  // fields go here
 +
 
 +
  $NAME$._();
 +
 
 +
  factory $NAME$([updates($NAME$Builder b)]) = _$$$NAME$;
 +
}
 
</syntaxhighlight>
 
</syntaxhighlight>

Navigation menu