dismiss method

Future<void> dismiss({
  1. Shot? shot,
  2. Settle? settle,
})

The platform closing it without the app being touched — a swipe down on Android, the dismiss key on an iPad.

Not the same as hide, and the difference is the whole reason both exist: this makes the app let go. The focused field is unfocused, so anything the app does on losing focus — validating, committing a draft, collapsing a suggestion list — actually happens. hide leaves the field focused and takes the picture away.

Implementation

Future<void> dismiss({Shot? shot, Settle? settle}) => _s._step(
  shot,
  settle,
  () async {
    _s._aimAtKeyboard(0);
    _s._keyboard.dismiss();
  },
  verb: 'keyboard',
  target: 'dismiss',
);