redirect method

Future<void> redirect({
  1. required String path,
})

Update current widget path & request a new widget

  • please note that this method would not create a new route, it would just change UI from current page

Implementation

Future<void> redirect({required String path}) async {
  _path = path;
  return await get();
}