back<T> method

bool back<T>({
  1. dynamic result,
  2. int? id,
})

Pops the current scope and indicates if you can pop again

result is the data that will returned to the previous route you can use this feature to exchange data between two routes

Implementation

bool back<T>({dynamic result, int? id}) {
  G.Get.back<T>(result: result, id: id);
  return G.Get.key.currentState?.canPop() ?? false;
}