finish<T extends Object> method

void finish<T extends Object>(
  1. [T result]
)

Implementation

void finish<T extends Object>([T result]) {
  if (Navigator.canPop(_contextBaseFunction)) {
    FocusScope.of(_contextBaseFunction).unfocus();
    Navigator.pop(_contextBaseFunction);
  } else {
    //说明已经没法回退了 , 可以关闭了
    finishDartPageOrApp();
  }
}