closePage<T> method Null safety

void closePage<T>(
  1. {bool useRootDelegate = false,
  2. T? result}
)

Close the current opened page.

useRootDelegate to close a page on the root DBRouterDelegate.

result provide a result for the closing page.

Implementation

void closePage<T>({bool useRootDelegate = false, T? result}) {
  return DBRouterDelegate.of(this, root: useRootDelegate).close<T>(result);
}