Updated 24-05-2020
NAME=$1
mkdir $NAME
cd $NAME
# Generate private key
{ | |
"Freezed model": { | |
"prefix": "frz", | |
"body": [ | |
"@freezed", | |
"class ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} with _$${1} {", | |
" factory ${1}({", | |
" required ${2:String id},", | |
" }) = _${1};", | |
"}" |
import 'dart:ui' as ui; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/painting.dart'; | |
// sample code | |
/* | |
class CornerDecorationTest extends StatefulWidget { | |
@override | |
_CornerDecorationTestState createState() => _CornerDecorationTestState(); | |
} |