Flutter setState to another class?
问题 I have a root class RootPage which is a StatefulWidget which is always in view. I would like to change the body in RootPage which is controlled by RootPage\'s currentPage Widget from different classes such as my FeedPage class and any other class that I make? Example code import \'package:flutter/material.dart\'; class RootPage extends StatefulWidget { @override _RootPageState createState() => new _RootPageState(); } class _RootPageState extends State<RootPage> { FeedPage feedPage; Widget