Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Flutter
(edit)
Revision as of 15:43, 28 October 2019
482 bytes added
,
15:43, 28 October 2019
m
→Built Value Enum
Line 104:
Line 104:
static BuiltSet<$NAME$> get values => _$$values;
static BuiltSet<$NAME$> get values => _$$values;
static $NAME$ valueOf(String name) => _$$valueOf(name);
static $NAME$ valueOf(String name) => _$$valueOf(name);
+
}
+
</syntaxhighlight>
+
+
=== BLoC ===
+
+
* Abbreviation: bloc
+
* Description: Create a Business Logic Object Component
+
* <syntaxhighlight lang="dart">
+
import 'package:bloc/bloc.dart';
+
+
+
class $BLOC$ extends Bloc<$EVENT$, $STATE$> { //class MyBloc extends Bloc<MyEvent, MyState>
+
@override
+
$STATE$ get initialState => // TODO: implement initialState;
+
+
@override
+
Stream<$STATE$> mapEventToState($STATE$ currentState, $EVENT$ event) async* {
+
// TODO: Implement mapEventToState
+
}
}
}
</syntaxhighlight>
</syntaxhighlight>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version