INNER CODE UNIT · Dart
_MyHomePageState
GetDutchie/brick · example_graphql/lib/main.dart:32
class _MyHomePageState extends State<MyHomePage> {
var migrated = false;
@override
void initState() {
// be sure to run `node server.js` before using this example
Repository.configure('http://localhost:4000');
// Note that subsequent boots of the app will use cached data
// To clear this, wipe data on android or tap-press on iOS and delete the app
Repository().initialize().then((_) => setState(() => migrated = true));
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),