close method

void close([
  1. T? value
])

Closes the modal with an optional return value.

Implementation

void close([T? value]) {
  Navigator.of(context).pop(value);
}