build method
A function building the logic for the page
While using the page mixing the build function in the widget using it should be removed and buildContent function should be used in place of it.
Implementation
Widget build(BuildContext context) {
return StoreConnector<State, V>(
onInit: onInit,
onInitialBuild: onInitialBuild,
onWillChange: (V? previousViewModel, V newViewModel) => onWillChange(
context,
previousViewModel,
newViewModel,
),
onDidChange: (V? previousViewModel, V newViewModel) => onDidChange(
context,
previousViewModel,
newViewModel,
),
onDispose: onDispose,
converter: (Store<State> store) => initViewModel()..init(store),
builder: buildContent,
);
}