OudsTopBarActionConfig.back constructor

OudsTopBarActionConfig.back({
  1. String? previousPageTitle,
  2. VoidCallback? onActionPressed,
  3. String? contentDescription,
})

Creates a configuration for a standard 'back' navigation action.

On iOS, an optional previousPageTitle can be displayed next to the back arrow.

Implementation

factory OudsTopBarActionConfig.back({
  String? previousPageTitle,
  VoidCallback? onActionPressed,
  String? contentDescription,
}) {
  return OudsTopBarActionConfig._(
    type: OudsTopBarActionType.back,
    previousPageTitle: previousPageTitle,
    onActionPressed: onActionPressed,
    contentDescription: contentDescription,
  );
}