Last active
March 17, 2020 22:36
-
-
Save ruan65/134fb4377f6d2a6c9719db2cc9da38ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ta test async | |
test( | |
'should $ACT$ when $END$', | |
() async { | |
// arrange | |
// act | |
// assert | |
}, | |
); | |
ts test sync | |
test( | |
'should $ACT$ when $END$', | |
() { | |
// arrange | |
// act | |
// assert | |
}, | |
); | |
// bvh | |
library $lib$; | |
import 'dart:convert'; | |
import 'package:built_collection/built_collection.dart'; | |
import 'package:built_value/built_value.dart'; | |
import 'package:built_value/serializer.dart'; | |
part '$lib$.g.dart'; | |
// bvb | |
abstract class $className$ implements Built<$className$, $className$Builder> { | |
String get brand; | |
$className$._(); | |
factory $className$([updates($className$Builder b)]) = _${$className$}; | |
} | |
// fblo | |
import 'package:bloc/bloc.dart'; | |
class $name$Bloc extends Bloc<$event$, $state$> { | |
@override | |
WeatherState get initialState => null; | |
@override | |
Stream<WeatherState> mapEventToState($state$ currentState, $event$ event) { | |
return null; | |
} | |
} | |
// frz | |
import 'package:freezed_annotation/freezed_annotation.dart'; | |
part '$FILE_NAME$.freezed.dart'; | |
@freezed | |
abstract class $NAME$ with _$$$NAME$ { | |
const factory $NAME$.$METHOD$() = $END$$METHOD$; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment