close method

void close(
  1. BuildContext context
)

Implementation

void close(BuildContext context) {
  Navigator.of(context).popUntil((route) {
    return route.settings.name == 'canary_root';
  });
}