data method

dynamic data({
  1. String? key,
})

Returns data that's sent via the Navigator or routeTo method.

Implementation

dynamic data({String? key}) {
  if (this.controller.request == null) {
    return null;
  }
  return this.controller.request!.data(key: key);
}