routeUpdated method Null safety

  1. @Deprecated('Use routeInformationUpdated instead. ' 'This feature was deprecated after v2.3.0-1.0.pre.')
Future<void> routeUpdated(
  1. {String? routeName,
  2. String? previousRouteName}
)
Deprecated('Use routeInformationUpdated instead. ' 'This feature was deprecated after v2.3.0-1.0.pre.')">@Deprecated('Use routeInformationUpdated instead. ' 'This feature was deprecated after v2.3.0-1.0.pre.')

Notifies the platform of a route change, and selects single-entry history mode.

This is equivalent to calling selectSingleEntryHistory and routeInformationUpdated together.

The previousRouteName argument is ignored.

Implementation

@Deprecated(
  'Use routeInformationUpdated instead. '
  'This feature was deprecated after v2.3.0-1.0.pre.'
)
static Future<void> routeUpdated({
  String? routeName,
  String? previousRouteName,
}) {
  return SystemChannels.navigation.invokeMethod<void>(
    'routeUpdated',
    <String, dynamic>{
      'previousRouteName': previousRouteName,
      'routeName': routeName,
    },
  );
}