Difference between revisions of "Flutter"

From RHS Wiki
Jump to navigation Jump to search
Tag: visualeditor
Tag: visualeditor
Line 13: Line 13:
 
File > Settings > Editor > Live Templates
 
File > Settings > Editor > Live Templates
  
=== Built Value Header ===
+
===Built Value Header===
  
 
*Abbreviation blth
 
*Abbreviation blth
Line 27: Line 27:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Built Value ===
+
===Built Value===
  
* Abbreviation blt
+
*Abbreviation blt
* Description Built Value
+
*Description Built Value
 
<syntaxhighlight lang="dart">
 
<syntaxhighlight lang="dart">
 
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
 
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
   // fields go here
+
   /* fields go here. Examples:
 +
  @nullable
 +
  String get country;
 +
  int get id;
 +
  */
 
    
 
    
 
   $NAME$._();
 
   $NAME$._();

Revision as of 08:46, 22 October 2019

Flutter

Install


Built Value Android Studio Live Templates

File > Settings > Editor > Live Templates

Built Value Header

  • Abbreviation blth
  • Description Built Value Header
library $LIBRARY$;
import 'dart:convert';
import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';

part '$LIBRARY$.g.dart';

Built Value

  • Abbreviation blt
  • Description Built Value
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
  /* fields go here. Examples:
  @nullable
  String get country;
  int get id;
  */
  
  $NAME$._();
  
  factory $NAME$([updates($NAME$Builder b)]) = _$$$NAME$;
}