Skip to content

pageRouteBuilder docs have an extraneous blank line #2294

Closed
@Hixie

Description

@Hixie

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions