OudsTopBarActionConfig.text constructor

OudsTopBarActionConfig.text({
  1. required String actionLabel,
  2. VoidCallback? onActionPressed,
  3. String? contentDescription,
})

Creates a configuration for a text-based action.

This is primarily intended for use on iOS, following Cupertino design guidelines.

Implementation

factory OudsTopBarActionConfig.text({
  required String actionLabel,
  VoidCallback? onActionPressed,
  String? contentDescription,
}) {
  return OudsTopBarActionConfig._(
    type: OudsTopBarActionType.text,
    actionLabel: actionLabel,
    onActionPressed: onActionPressed,
    contentDescription: contentDescription,
  );
}