Go constructor

Go(
  1. BuildContext context, {
  2. String? routeName,
  3. MyRouteArguments? arguments,
  4. dynamic data,
})

Creates a Go instance with the provided parameters.

  • context: The BuildContext from which navigation actions will be performed.
  • routeName: The name of the route to navigate to.
  • data: Navigates back to the previous screen with provided data.
  • arguments: Optional route-specific data to pass when navigating.

Implementation

Go(this.context, {this.routeName, this.arguments, this.data});