finish static method

dynamic finish(
  1. BuildContext context, {
  2. Object? result,
})

Finish or Remove or Close or Back screen

Implementation

static finish(BuildContext context, {Object? result}) {
  Navigator.pop(context, result);
}