Skip to content

Instantly share code, notes, and snippets.

View ResoDev's full-sized avatar

Matej Rešetár ResoDev

View GitHub Profile
@ResoDev
ResoDev / dart.json
Created July 14, 2019 16:32
Put this to File -> Preferences -> User Snippets -> Dart (or create new)
{
"Built Value": {
"prefix": "blt",
"body": [
"abstract class ${1} implements Built<${1}, ${1}Builder> {",
"\t${0:// fields go here}",
"",
"\t${1}._();",
"",
"\tfactory ${1}([updates(${1}Builder b)]) = _$${1};",
@ResoDev
ResoDev / dart.json
Created November 25, 2019 17:05
Kiwi Module Snippet
"Kiwi DI module": {
"prefix": "kiwim",
"body": [
"//! ${1:module name}",
"void _configure${1}Module() {",
" _configure${1}Instances();",
" _configure${1}Factories();",
"}",
"",
"void _configure${1}Instances() {",
@ResoDev
ResoDev / dart.json
Created December 26, 2019 07:47
MobX Store Boilerplate Snippet
"MobX Store": {
"prefix": "ms",
"body": [
"import 'package:mobx/mobx.dart';",
"",
"part '${1}_store.g.dart';",
"",
"class ${1/(.*)/${1:/pascalcase}/g}Store extends _${1/(.*)/${1:/pascalcase}/g}Store with _$${1/(.*)/${1:/pascalcase}/g}Store {}",
"",
"abstract class _${1/(.*)/${1:/pascalcase}/g}Store with Store {",