pop<T> static method

void pop<T>(
  1. BuildContext context, {
  2. T? result,
})

pop screen with result

Implementation

static void pop<T>(BuildContext context, {T? result}) {
  if (result == null) {
    Navigator.of(context).pop();
  } else {
    Navigator.of(context).pop(result);
  }
}