diff --git a/lib/src/flow_editor_page.dart b/lib/src/flow_editor_page.dart index 6363851..73d60ba 100644 --- a/lib/src/flow_editor_page.dart +++ b/lib/src/flow_editor_page.dart @@ -218,10 +218,7 @@ class _FlowEditorPageState extends State // change what the list must show. if (widget.flowsDir != old.flowsDir || !setEquals(widget.sampleFlowNames, old.sampleFlowNames)) { - final fresh = _listFiles(); - setState(() { - _files = fresh; - }); + setState(() => _files = _listFiles()); } }