equalsSettingsOf function

Matcher equalsSettingsOf(
  1. Route route
)

Returns a matcher that matches the RouteSettings from the given route.

Implementation

Matcher equalsSettingsOf(Route<dynamic> route) {
  return isA<RouteSettings>()
      .having(
        (s) => s.name,
        'name',
        equals(route.settings.name),
      )
      .having(
        (s) => s.arguments,
        'arguments',
        equals(route.settings.arguments),
      );
}