Skip to content

pageRouteBuilder docs have an extraneous blank line #2294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hixie opened this issue Aug 14, 2020 · 0 comments · Fixed by #2320
Closed

pageRouteBuilder docs have an extraneous blank line #2294

Hixie opened this issue Aug 14, 2020 · 0 comments · Fixed by #2320
Assignees

Comments

@Hixie
Copy link
Contributor

Hixie commented Aug 14, 2020

https://master-api.flutter.dev/flutter/widgets/WidgetsApp/pageRouteBuilder.html:

pageRouteBuilder property

PageRoute<T> Function<T>(
RouteSettings settings,

WidgetBuilder builder
) pageRouteBuilder
final

The PageRoute generator callback used when the app is navigated to a named route.

Source is:

/// The signature of [WidgetsApp.pageRouteBuilder].
///
/// Creates a [PageRoute] using the given [RouteSettings] and [WidgetBuilder].
typedef PageRouteFactory = PageRoute<T> Function<T>(RouteSettings settings, WidgetBuilder builder);

//...

  /// The [PageRoute] generator callback used when the app is navigated to a
  /// named route.
  ///
  /// This callback can be used, for example, to specify that a [MaterialPageRoute]
  /// or a [CupertinoPageRoute] should be used for building page transitions.
  final PageRouteFactory pageRouteBuilder;

What's weird is that the actual signature is a typedef but that seems to get elided here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants