To return data to the first screen, use the Navigator. pop() method , which accepts an optional second argument called result . Any result is returned to the Future in the SelectionButton.
To return data to the first screen, use the Navigator. pop() method , which accepts an optional second argument called result . Any result is returned to the Future in the SelectionButton.