close static method

void close(
  1. BuildContext context
)

Closes the currently displayed bottom sheet by popping its route. This assumes that a bottom sheet route is currently active.

Implementation

static void close(BuildContext context) {
  Navigator.pop(context);
}