toggle method

dynamic toggle()

Toggle the visibility state of the Modal.

Implementation

toggle() => _shown ? hide() : show();