Skip to content

Instantly share code, notes, and snippets.

@ResoDev
Created December 26, 2019 07:47
Show Gist options
  • Save ResoDev/8c161deab28bbfd20482dee9ef704c10 to your computer and use it in GitHub Desktop.
Save ResoDev/8c161deab28bbfd20482dee9ef704c10 to your computer and use it in GitHub Desktop.
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 {",
" ",
"}"
],
"description": "MobX Store"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment