pop method Null safety

dynamic pop(
  1. {bool? result}
)

Implementation

pop({bool? result}) {
  if (result != null) {
    Navigator.pop(this, result);
    return;
  }
  Navigator.pop(this);
}