INNER CODE UNIT · Dart

MyHomePage

GetDutchie/brick · example_graphql/lib/main.dart:23

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

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));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…