How to refresh currently active page in flutter

just Simple use

setState(() {});

I once used this workaround for a floatingActionButton that reloaded the active page;

Navigator.pushReplacement(
        context,
        MaterialPageRoute(
            builder: (BuildContext context) => super.widget));

try (context as Element).reassemble();

reassemble is the function that is used for hot reload

also i think it's better to say your goal and look at other solutions to fix your problem because I don't think this method is reliable.

EDIT: there are some useful tips in the comments.

Tags:

Dart

Flutter